UNPKG

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.

9 lines (8 loc) 205 B
export type Id<T extends string> = { type: T; value: number; }; /** * Create a branded ID type from a number */ export declare function createId<T extends string>(type: T, value: number): Id<T>;