diff options
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-widget-api/lib/util/SimpleObservable.d.ts')
-rw-r--r-- | includes/external/matrix/node_modules/matrix-widget-api/lib/util/SimpleObservable.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/util/SimpleObservable.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/util/SimpleObservable.d.ts new file mode 100644 index 0000000..886eca2 --- /dev/null +++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/util/SimpleObservable.d.ts @@ -0,0 +1,8 @@ +export declare type ObservableFunction<T> = (val: T) => void; +export declare class SimpleObservable<T> { + private listeners; + constructor(initialFn?: ObservableFunction<T>); + onUpdate(fn: ObservableFunction<T>): void; + update(val: T): void; + close(): void; +} |