summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-widget-api/lib/util/SimpleObservable.d.ts
blob: 886eca2e52cf25d8afdb8af851de6debad294c49 (plain)
1
2
3
4
5
6
7
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;
}