@meleon/uni-ui
Version:
A uniapp components library written in vue3 and typescript
15 lines (14 loc) • 581 B
TypeScript
import { Watcher } from './watcher';
import type { MutationsType } from '../interface/config';
import type { Observer } from '../interface/interface';
declare class StateWatcher extends Watcher {
mutations: MutationsType;
observerList: Observer[];
constructor();
commit(name: string, ...args: any[]): void;
getStore(): this;
getStates(): Partial<import("../interface/interface").StatesType & import("../interface/interface").TableEntityType>;
addObserver(...observers: Observer[]): void;
notify(): void;
}
export default StateWatcher;