From b36a0a61fa2a51381243af5b06ffd1c7ffcefdbe Mon Sep 17 00:00:00 2001 From: Rizky Date: Tue, 13 Aug 2024 15:40:51 +0700 Subject: [PATCH] update types --- app/web/src/utils/script/types/base.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/web/src/utils/script/types/base.ts b/app/web/src/utils/script/types/base.ts index 88d1b383..4c735bfd 100644 --- a/app/web/src/utils/script/types/base.ts +++ b/app/web/src/utils/script/types/base.ts @@ -12,7 +12,7 @@ export const baseTypings = ` const prasi_internal: { page: { id: string }; }; - + const pathname: string; const isEditor: boolean; const isLayout: boolean; @@ -35,6 +35,7 @@ export const baseTypings = ` ) => void;}) => ReactNode; const navigate: (url: string, params?: { + name?: string; where?: any; create?: any; update?: any; @@ -54,7 +55,7 @@ export const baseTypings = ` onPointerMove?: () => void; onPointerLeave?: () => void; inherit?: { - style: any, + style: any, className: string } }; @@ -145,7 +146,7 @@ export const baseTypings = ` }; render?: () => void; }; - + const PassProp: (arg:Record & { children: ReactNode }>) => ReactElement; const mobile: { notif: {