@lipemat/js-boilerplate-shared 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lipemat/js-boilerplate-shared",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "license": "MIT",
5
5
  "description": "Shared utilities for all @lipemat boilerplate packages",
6
6
  "engines": {
@@ -14,13 +14,7 @@ export type Resource = LoaderContext<{
14
14
 
15
15
  export type GetLocalIdent = ( context: Resource, localIdentName: string, localName: string ) => string;
16
16
 
17
- export type Modules =
18
- | boolean
19
- | 'local'
20
- | 'global'
21
- | 'pure'
22
- | 'icss'
23
- | {
17
+ export type ObjectModules = Partial<{
24
18
  auto: boolean | RegExp | ( ( resourcePath: string ) => boolean );
25
19
  mode: Mode | ( ( resourcePath: string ) => Mode );
26
20
  localIdentName: string;
@@ -51,7 +45,15 @@ export type Modules =
51
45
  exports: object[];
52
46
  replacements: object[];
53
47
  } ) => Promise<void> | void;
54
- };
48
+ }>;
49
+
50
+ export type Modules =
51
+ | boolean
52
+ | 'local'
53
+ | 'global'
54
+ | 'pure'
55
+ | 'icss'
56
+ | ObjectModules;
55
57
 
56
58
  type Base = {
57
59
  importLoaders?: number;