mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-10-16 02:36:32 +08:00
12 lines
333 B
TypeScript
12 lines
333 B
TypeScript
export abstract class ObservedData {
|
|
abstract update(data: any, path?: string): void;
|
|
|
|
abstract on(path: string, callback: (newVal: any) => void, options?: { immediate?: boolean }): void;
|
|
|
|
abstract off(path: string, callback: (newVal: any) => void): void;
|
|
|
|
abstract getData(path: string): any;
|
|
|
|
abstract destroy(): void;
|
|
}
|