@webwriter/block-based-code
Version:
Write block-based code (e.g. Scratch) and run it.
20 lines (17 loc) • 456 B
text/typescript
import { BlockStyle, CategoryStyle } from "../theme";
/**
* The block definition type.
*/
export interface BlockDefinition {
type: `${CategoryStyle}:${string}`;
category: CategoryStyle;
style: BlockStyle;
[key: `message${number}`]: string;
[key: `args${number}`]: {
type: string;
name?: Uppercase<string>;
check?: "Number" | "String" | "Boolean";
value?: string | number;
}[];
[key: string]: unknown;
}