Files
snort/packages/system/dist/ExternalStore.d.ts
2023-06-08 12:45:23 +02:00

13 lines
421 B
TypeScript

type HookFn<TSnapshot> = (e?: TSnapshot) => void;
/**
* Simple React hookable store with manual change notifications
*/
export default abstract class ExternalStore<TSnapshot> {
#private;
hook(fn: HookFn<TSnapshot>): () => void;
snapshot(): Readonly<TSnapshot>;
protected notifyChange(sn?: TSnapshot): void;
abstract takeSnapshot(): TSnapshot;
}
export {};
//# sourceMappingURL=ExternalStore.d.ts.map