UNPKG

prendy

Version:

Make games with prerendered backdrops using babylonjs and repond

34 lines (33 loc) 1.43 kB
import { ItemType, StatePath } from "repond"; import { EventTuple } from "repond-events"; export declare const basicEvents: { wait: import("repond-events").EventTypeDefinition<{ time: number; }>; log: import("repond-events").EventTypeDefinition<{ text: string; }>; setState: import("repond-events").EventTypeDefinition<{ state: import("repond").GetPartialState<import("repond").AllState> | ((state: { readonly [x: string]: { readonly [x: string]: any; }; readonly [x: number]: { readonly [x: string]: any; }; }) => import("repond").GetPartialState<import("repond").AllState> | undefined); }>; runEventsIf: import("repond-events").EventTypeDefinition<{ state: StatePath<any>; events: UntypedEventTuple[] | undefined; elseEvents: UntypedEventTuple[] | undefined; }>; }; type UntypedEventTuple = [string, string, Record<any, any> | undefined, Record<any, any> | undefined]; type BasicRunEventsIfParams<T_ItemType extends ItemType> = { state: StatePath<T_ItemType>; events?: EventTuple[] | undefined; elseEvents?: EventTuple[] | undefined; }; export type BasicEventParameters<T_Group, T_Event, T_GenericParamA> = T_Group extends "basic" ? T_Event extends "runEventsIf" ? BasicRunEventsIfParams<T_GenericParamA & ItemType> : never : never; export {};