UNPKG

automatic-assessments

Version:

Automatic assessment of Marty and Scratch 3.0 projects

58 lines (57 loc) 1.36 kB
export declare type Script = string; export declare type Blocks = { _blocks: _BlocksObj; _scripts: Script[]; }; export declare type _BlocksObj = { [key: string]: { fields: FieldsObj; id: string; inputs: InputsObj; next: string | null; opcode: string; parent: string | null; shadow: boolean; topLevel: boolean; [key: string]: string | null | boolean | FieldsObj | InputsObj | number; }; }; export declare type InputsObj = { [key: string]: { block: string; name: string; shadow: string; [key: string]: string | null; }; }; export declare type FieldsObj = { [key: string]: { id: string | null; name: string; value: string; [key: string]: string | null; }; }; export declare type Target = { blocks: Blocks; comments: object; currentCostumes: number; direction: number; drawableID: number; id: string; isOriginal: boolean; isStage: boolean; sprite: Sprite; variables: VariablesObj; visible: boolean; }; export declare type VariablesObj = { id?: string; isCloud?: boolean; name?: string; type?: string; value?: number; }; export declare type Sprite = { name: string; };