UNPKG

721 BTypeScriptView Raw
1export declare class TypeStorage<K = any, V = any> {
2 types: Map<K | string, V>;
3 constructor();
4 get size(): number;
5 clear(): void;
6 delete(typeName: K): boolean;
7 entries(): Iterator<[K | string, V]>;
8 forEach(callbackfn: (value: V, index: K | string, map: Map<K | string, V>) => unknown, thisArg?: any): void;
9 get(typeName: K): V;
10 has(typeName: K): boolean;
11 keys(): Iterator<K | string>;
12 set(typeName: K | string, value: V): TypeStorage<K, V>;
13 values(): Iterator<V>;
14 add(value: V): string | null;
15 hasInstance(typeName: K, ClassObj: any): boolean;
16 getOrSet(typeName: K, typeOrThunk: V | ((schemaComposer: this) => V)): V;
17}
18//# sourceMappingURL=TypeStorage.d.ts.map
\No newline at end of file