excalibur
Version:
Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.
13 lines (12 loc) • 445 B
TypeScript
/**
* Watch an object with a proxy, only fires if property value is different
*/
export declare function watch<T extends object>(type: T, change: (type: T) => any): T;
/**
*
*/
export declare function watchDeep<T extends object>(type: T, change: (type: T) => any): T;
/**
* Watch an object with a proxy, fires change on any property value change
*/
export declare function watchAny<T extends object>(type: T, change: (type: T) => any): T;