@modern-js/utils 1.20.1 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2 -0
- package/dist/applyOptionsChain.d.ts +3 -2
- package/dist/types.d.ts +1 -0
- package/dist/types.js +2 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
export declare function applyOptionsChain<T, U>(defaults: T, options
|
1
|
+
import type { Falsy } from './types';
|
2
|
+
export declare function applyOptionsChain<T, U>(defaults: T, options?: T | ((config: T, utils?: U) => T | void) | Array<T | ((config: T, utils?: U) => T | void)> | Falsy, utils?: U, mergeFn?: typeof Object.assign): T;
|
3
|
+
export declare function applyOptionsChain<T, U>(defaults: T, options: T | ((config: T, utils: U) => T | void) | Array<T | ((config: T, utils: U) => T | void)> | Falsy, utils: U, mergeFn?: typeof Object.assign): T;
|
package/dist/types.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare type Falsy = false | null | undefined | 0 | '';
|
package/dist/types.js
ADDED
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.
|
14
|
+
"version": "1.21.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/index.d.ts",
|
17
17
|
"main": "./dist/index.js",
|
@@ -129,9 +129,9 @@
|
|
129
129
|
"lodash": "^4.17.21"
|
130
130
|
},
|
131
131
|
"devDependencies": {
|
132
|
-
"@modern-js/types": "1.
|
133
|
-
"@scripts/build": "1.
|
134
|
-
"@scripts/jest-config": "1.
|
132
|
+
"@modern-js/types": "1.21.0",
|
133
|
+
"@scripts/build": "1.21.0",
|
134
|
+
"@scripts/jest-config": "1.21.0",
|
135
135
|
"@types/jest": "^27",
|
136
136
|
"@types/node": "^14",
|
137
137
|
"typescript": "^4",
|