You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
317 B
10 lines
317 B
2 weeks ago
|
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;
|
||
|
}
|