UNPKG

523 BTypeScriptView Raw
1export declare type RegistryEntries<T> = Iterable<[string, T]> | ReadonlyArray<[string, T]>;
2export declare class Registry<T> {
3 protected readonly map: Map<string, T>;
4 constructor(entries?: RegistryEntries<T>);
5 readonly keys: IterableIterator<string>;
6 readonly values: IterableIterator<T>;
7 clear(): void;
8 containsKey(key: string): boolean;
9 register(key: string, value: T): void;
10 resolve(key: string): T | undefined;
11 unregister(key: string): void;
12}
13//# sourceMappingURL=Registry.d.ts.map
\No newline at end of file