grandma3-ts-types
Version:
TypeScript definitions for grandMA3 Lua library.
23 lines (18 loc) • 643 B
TypeScript
type Appearances = Obj<ShowData, Appearance> & Appearance[] & { [index: string]: Appearance };
type Appearance = Obj<Appearances, undefined, AppearanceProps> & AppearanceProps;
type AppearanceProps = ObjProps & {
BACKR: number;
BACKG: number;
BACKB: number;
BACKALPHA: number;
image: UserImage;
IMAGER: number;
IMAGEG: number;
IMAGEB: number;
IMAGEALPHA: number;
};
type ScribbleProps = ObjProps & {
scribble: string; // comma separated list of points and colors
};
type Scribbles = Obj<ShowData, Scribble> & Scribble[] & { [index: string]: Scribble };
type Scribble = Obj<Appearances, undefined, ScribbleProps> & ScribbleProps;