UNPKG

951 BTypeScriptView Raw
1import { ContributionFilterRegistry, ContributionType, FilterContribution } from './contribution-filter';
2import { Filter } from './filter';
3/**
4 * Registry of contribution filters.
5 *
6 * Implement/bind to the `FilterContribution` interface/symbol to register your contribution filters.
7 */
8export declare class ContributionFilterRegistryImpl implements ContributionFilterRegistry {
9 protected initialized: boolean;
10 protected genericFilters: Filter<Object>[];
11 protected typeToFilters: Map<ContributionType, Filter<Object>[]>;
12 constructor(contributions?: FilterContribution[]);
13 addFilters(types: '*' | ContributionType[], filters: Filter<Object>[]): void;
14 applyFilters<T extends Object>(toFilter: T[], type: ContributionType): T[];
15 protected getOrCreate(type: ContributionType): Filter<Object>[];
16 protected getFilters(type: ContributionType): Filter<Object>[];
17}
18//# sourceMappingURL=contribution-filter-registry.d.ts.map
\No newline at end of file