typed-adventureland
Version:
Strong TypeScript declarations for the game AdventureLand
17 lines (16 loc) • 458 B
TypeScript
import { GameWithEventsFunctions } from "./game-event";
export {};
declare global {
const game: Game;
type Game = GameWithEventsFunctions & {
/** indicator if the game is using graphics and we can use PIXI.Graphics for example */
graphics: boolean;
platform: string;
html: boolean;
cli: string;
listeners: Array<{
id: string;
event: string;
}>;
};
}