@sprucelabs/schema 28.2.35 → 28.2.38
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.
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export default function assertOptions<Options extends Record<string, any>, Path extends Paths<Options> = Paths<Options>>(options: Options, toCheck: Path[], friendlyMessage?: string): Options &
|
|
1
|
+
export default function assertOptions<Options extends Record<string, any>, Path extends Paths<Options> = Paths<Options>>(options: Options, toCheck: Path[], friendlyMessage?: string): Options & {
|
|
2
|
+
[P in Path]: NonNullable<Options[P]>;
|
|
3
|
+
};
|
|
2
4
|
declare type Join<K, P> = K extends string | number ? P extends string | number ? `${K}${'' extends P ? '' : '.'}${P}` : never : never;
|
|
3
5
|
declare type Prev = [
|
|
4
6
|
never,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export default function assertOptions<Options extends Record<string, any>, Path extends Paths<Options> = Paths<Options>>(options: Options, toCheck: Path[], friendlyMessage?: string): Options &
|
|
1
|
+
export default function assertOptions<Options extends Record<string, any>, Path extends Paths<Options> = Paths<Options>>(options: Options, toCheck: Path[], friendlyMessage?: string): Options & {
|
|
2
|
+
[P in Path]: NonNullable<Options[P]>;
|
|
3
|
+
};
|
|
2
4
|
declare type Join<K, P> = K extends string | number ? P extends string | number ? `${K}${'' extends P ? '' : '.'}${P}` : never : never;
|
|
3
5
|
declare type Prev = [
|
|
4
6
|
never,
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"!build/__tests__",
|
|
9
9
|
"esm"
|
|
10
10
|
],
|
|
11
|
-
"version": "28.2.
|
|
11
|
+
"version": "28.2.38",
|
|
12
12
|
"main": "./build/index.js",
|
|
13
13
|
"types": "./build/index.d.ts",
|
|
14
14
|
"module": "./build/esm/index.js",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@sprucelabs/jest-sheets-reporter": "^1.3.29",
|
|
80
80
|
"@sprucelabs/resolve-path-aliases": "^1.1.14",
|
|
81
81
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
82
|
-
"@sprucelabs/test-utils": "^3.1.
|
|
82
|
+
"@sprucelabs/test-utils": "^3.1.3",
|
|
83
83
|
"@types/lodash": "^4.14.182",
|
|
84
84
|
"chokidar-cli": "^3.0.0",
|
|
85
85
|
"concurrently": "^7.2.1",
|