free-types-core 0.4.5 → 0.5.0
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/dist/free-types.d.ts +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/unwrap.d.ts +9 -0
- package/package.json +1 -1
package/dist/free-types.d.ts
CHANGED
|
@@ -47,3 +47,17 @@ interface $UnaryFunction extends Type<2> {
|
|
|
47
47
|
interface $Promise extends Type<1> {
|
|
48
48
|
type: Promise<this[0]>;
|
|
49
49
|
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface Set<T> {
|
|
52
|
+
}
|
|
53
|
+
interface ReadonlySet<T> {
|
|
54
|
+
}
|
|
55
|
+
interface WeakSet<T> {
|
|
56
|
+
}
|
|
57
|
+
interface Map<K, V> {
|
|
58
|
+
}
|
|
59
|
+
interface ReadonlyMap<K, V> {
|
|
60
|
+
}
|
|
61
|
+
interface WeakMap<K, V> {
|
|
62
|
+
}
|
|
63
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/unwrap.d.ts
CHANGED
|
@@ -11,6 +11,15 @@ declare type Interface = {
|
|
|
11
11
|
} & {
|
|
12
12
|
[Symbol.toStringTag]?: never;
|
|
13
13
|
};
|
|
14
|
+
declare global {
|
|
15
|
+
interface SymbolConstructor {
|
|
16
|
+
readonly toStringTag: unique symbol;
|
|
17
|
+
}
|
|
18
|
+
interface Symbol {
|
|
19
|
+
readonly [Symbol.toStringTag]: string;
|
|
20
|
+
}
|
|
21
|
+
var Symbol: SymbolConstructor;
|
|
22
|
+
}
|
|
14
23
|
export { unwrap, Unwrapped, Search };
|
|
15
24
|
/** Decompose a type into its constituents */
|
|
16
25
|
declare type unwrap<T, From extends Search = TypesMap> = T extends readonly unknown[] ? unwrapLists<T> : _unwrap<T, From extends Type ? [From] : From>;
|
package/package.json
CHANGED