Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 3x 8x 14x 4x 14x 3x 3x 2x 2x 3x | 'use strict';
export class SqliteLiveUpdatesRegistry {
public static add(entity: any): void {
SqliteLiveUpdatesRegistry._entities.add(entity);
}
public static has(entity: any): boolean {
return SqliteLiveUpdatesRegistry._entities.has(entity);
}
public static entities(): any[] {
return Array.from(SqliteLiveUpdatesRegistry._entities);
}
public static clear(): void {
SqliteLiveUpdatesRegistry._entities.clear();
}
private static readonly _entities: Set<any> = new Set<any>();
private constructor() {}
}
const SqliteLiveUpdates = (): ClassDecorator => {
return (target: any): void => {
SqliteLiveUpdatesRegistry.add(target);
};
};
export default SqliteLiveUpdates;
|