fix: BlockData type
This commit is contained in:
parent
e862e5754b
commit
324f9569ce
1 changed files with 4 additions and 1 deletions
5
src/types.d.ts
vendored
5
src/types.d.ts
vendored
|
|
@ -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>;
|
||||||
}
|
}
|
||||||
>;
|
>;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue