d26db06f74
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled
10 lines
317 B
TypeScript
10 lines
317 B
TypeScript
export declare class Registry<T> {
|
|
private readonly generateIdentifier;
|
|
private kv;
|
|
constructor(generateIdentifier: (v: T) => string);
|
|
register(value: T, identifier?: string): void;
|
|
clear(): void;
|
|
getIdentifier(value: T): string | undefined;
|
|
getValue(identifier: string): T | undefined;
|
|
}
|