1
0
Fork 0
react-playground/node_modules/@mui/x-internals/esm/store/Store.d.ts
Techognito fc0f69dacb Added Statistics calculation
Statistics now show calculated values
2025-09-04 17:30:00 +02:00

14 lines
No EOL
413 B
TypeScript

type Listener<T> = (value: T) => void;
export declare class Store<State> {
state: State;
private listeners;
private updateTick;
static create<T>(state: T): Store<T>;
constructor(state: State);
subscribe: (fn: Listener<State>) => () => void;
getSnapshot: () => State;
setState(newState: State): void;
update(changes: Partial<State>): void;
set<T>(key: keyof State, value: T): void;
}
export {};