@visactor/vrender-core
Version:
```typescript import { xxx } from '@visactor/vrender-core'; ```
10 lines (9 loc) • 392 B
TypeScript
import type { IContributionRegistry, RegistryKey } from './types';
export declare class ContributionRegistry<T = unknown> implements IContributionRegistry<T> {
private readonly entries;
register(key: RegistryKey, contribution: T): void;
unregister(key: RegistryKey, contribution?: T): void;
get(key: RegistryKey): T[];
getAll(): T[];
clear(key?: RegistryKey): void;
}