mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-07 08:48:28 +08:00
13 lines
390 B
TypeScript
13 lines
390 B
TypeScript
import { SimpleEmitter } from "./SimpleEmitter";
|
|
import { WritableProperty } from "./WritableProperty";
|
|
import { SimpleProperty } from "./SimpleProperty";
|
|
import { Emitter } from "./Emitter";
|
|
|
|
export function emitter<E, M = undefined>(): Emitter<E, M> {
|
|
return new SimpleEmitter();
|
|
}
|
|
|
|
export function property<T>(value: T): WritableProperty<T> {
|
|
return new SimpleProperty(value);
|
|
}
|