phantasmal-world/src/new/core/observable/Observable.ts

6 lines
158 B
TypeScript
Raw Normal View History

import { Disposable } from "./Disposable";
2019-08-20 04:56:40 +08:00
export interface Observable<E, M = undefined> {
observe(observer: (event: E, meta: M) => void): Disposable;
2019-08-20 04:56:40 +08:00
}