tmp
This commit is contained in:
9
miniprogram_npm/tdesign-miniprogram/config-provider/reactive-state.d.ts
vendored
Normal file
9
miniprogram_npm/tdesign-miniprogram/config-provider/reactive-state.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export default class ReactiveState<T> {
|
||||
private _value;
|
||||
private _listeners;
|
||||
constructor(initialValue: T);
|
||||
get value(): T;
|
||||
set value(newValue: T);
|
||||
subscribe(listener: (value: T) => void): () => void;
|
||||
private _notify;
|
||||
}
|
||||
Reference in New Issue
Block a user