fix: add BlockData type

This commit is contained in:
trafficlunar 2024-12-22 16:08:38 +00:00
parent efd32a830b
commit a93073caf9

11
src/types.d.ts vendored
View file

@ -32,3 +32,14 @@ interface DialogProps {
close: () => void; close: () => void;
} }
type BlockData = Record<
string,
{
name: string;
version: string;
id?: (string | number)[];
fallable?: boolean;
creative?: boolean;
properties?: Record<string, string>;
}
>;