phantasmal-world/src/new/core/observable/Observable.ts
2019-08-21 15:19:44 +02:00

6 lines
158 B
TypeScript

import { Disposable } from "./Disposable";
export interface Observable<E, M = undefined> {
observe(observer: (event: E, meta: M) => void): Disposable;
}