grandma3-ts-types
Version:
TypeScript definitions for grandMA3 Lua library.
23 lines (20 loc) • 580 B
TypeScript
type GraphicsRoot = Obj<Root, any> &
any[] & { [index: string]: any } & {
TextureCollect: TextureCollect;
PultCollect: PultCollect;
};
type TextureCollect = Obj<GraphicsRoot, Textures> & {
Textures: Textures;
};
type Textures = Obj<TextureCollect, Texture> & {
[name: string]: Texture;
};
type TextureProps = ObjProps & {
fileName: string;
textureRect: { h: number; w: number; x: number; y: number };
textureIndex: number;
};
type Texture = Obj<Textures, undefined, TextureProps> & TextureProps;
type PultCollect = Obj<GraphicsRoot, any> & {
[name: string]: any;
};