@bitblit/ratchet-common 6.1.171-alpha → 6.1.174-alpha
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/lib/typing/exact-and-require-all.d.ts +3 -0
- package/lib/typing/exact-and-require-all.js +2 -0
- package/lib/typing/exact-and-require-all.js.map +1 -0
- package/lib/typing/exact.d.ts +1 -0
- package/lib/typing/exact.js +2 -0
- package/lib/typing/exact.js.map +1 -0
- package/lib/typing/require-all.d.ts +3 -0
- package/lib/typing/require-all.js +2 -0
- package/lib/typing/require-all.js.map +1 -0
- package/package.json +1 -1
- package/src/typing/exact-and-require-all.ts +9 -0
- package/src/typing/exact.ts +6 -0
- package/src/typing/require-all.ts +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exact-and-require-all.js","sourceRoot":"","sources":["../../src/typing/exact-and-require-all.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Exact<T extends object> = T & Partial<Record<Exclude<string, keyof T>, never>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exact.js","sourceRoot":"","sources":["../../src/typing/exact.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-all.js","sourceRoot":"","sources":["../../src/typing/require-all.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RequireAll } from "./require-all.ts";
|
|
2
|
+
import { Exact } from "./exact.ts";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This is used in a "satisfy" clause to make sure that an object
|
|
6
|
+
* contains all the fields in T and does not contain any fields
|
|
7
|
+
* not in T
|
|
8
|
+
*/
|
|
9
|
+
export type ExactAndRequireAll<T> = Exact<RequireAll<T>>;
|