From 5f4bf377c94db9491a1bc1bdaa03fefef5412ab6 Mon Sep 17 00:00:00 2001 From: Rizky Date: Sun, 11 Aug 2024 09:50:18 +0700 Subject: [PATCH] fix --- app/web/src/utils/script/types/base.ts | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/app/web/src/utils/script/types/base.ts b/app/web/src/utils/script/types/base.ts index c8b195a3..88d1b383 100644 --- a/app/web/src/utils/script/types/base.ts +++ b/app/web/src/utils/script/types/base.ts @@ -117,6 +117,34 @@ export const baseTypings = ` type PrasiItem = IItem & PrasiEdit; const _item: PrasiItem; + const _metas: Record; + const _meta: { + item: any; + mitem?: any; + parent?: { + id: string; + instance_id?: string; + comp_id?: string; + }; + instances?: Record>; + jsx_prop?: { + name: string; + comp_id: string; + is_root: boolean; + child?: { + prop_id: string; + comp_id: string; + }; + }; + editor_props?: any; + script?: { + scope?: any; + result: any; + Local: any; + PassProp: any; + }; + render?: () => void; + }; const PassProp: (arg:Record & { children: ReactNode }>) => ReactElement; const mobile: {