fix: BlockData type

This commit is contained in:
trafficlunar 2024-12-24 17:44:38 +00:00
parent e862e5754b
commit 324f9569ce

5
src/types.d.ts vendored
View file

@ -24,6 +24,7 @@ interface Block extends Position {
type Tool = "hand" | "pencil" | "eraser" | "zoom"; type Tool = "hand" | "pencil" | "eraser" | "zoom";
interface Settings { interface Settings {
blockSelectorWindow: boolean;
grid: boolean; grid: boolean;
canvasBorder: boolean; canvasBorder: boolean;
} }
@ -37,9 +38,11 @@ type BlockData = Record<
{ {
name: string; name: string;
version: string; version: string;
id?: (string | number)[]; id: (string | number)[];
color: number[];
fallable?: boolean; fallable?: boolean;
creative?: boolean; creative?: boolean;
tile_entity?: boolean;
properties?: Record<string, string>; properties?: Record<string, string>;
} }
>; >;