From a93073caf9e84660121bb76df9dffd230771602c Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Sun, 22 Dec 2024 16:08:38 +0000 Subject: [PATCH] fix: add `BlockData` type --- src/types.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/types.d.ts b/src/types.d.ts index 0256e4e..597eda7 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -32,3 +32,14 @@ interface DialogProps { close: () => void; } +type BlockData = Record< + string, + { + name: string; + version: string; + id?: (string | number)[]; + fallable?: boolean; + creative?: boolean; + properties?: Record; + } +>;