update types

This commit is contained in:
Rizky 2024-08-13 15:40:51 +07:00
parent 5f4bf377c9
commit b36a0a61fa
1 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export const baseTypings = `
const prasi_internal: { const prasi_internal: {
page: { id: string }; page: { id: string };
}; };
const pathname: string; const pathname: string;
const isEditor: boolean; const isEditor: boolean;
const isLayout: boolean; const isLayout: boolean;
@ -35,6 +35,7 @@ export const baseTypings = `
) => void;}) => ReactNode; ) => void;}) => ReactNode;
const navigate: (url: string, const navigate: (url: string,
params?: { params?: {
name?: string;
where?: any; where?: any;
create?: any; create?: any;
update?: any; update?: any;
@ -54,7 +55,7 @@ export const baseTypings = `
onPointerMove?: () => void; onPointerMove?: () => void;
onPointerLeave?: () => void; onPointerLeave?: () => void;
inherit?: { inherit?: {
style: any, style: any,
className: string className: string
} }
}; };
@ -145,7 +146,7 @@ export const baseTypings = `
}; };
render?: () => void; render?: () => void;
}; };
const PassProp: (arg:Record<string, any> & { children: ReactNode }>) => ReactElement; const PassProp: (arg:Record<string, any> & { children: ReactNode }>) => ReactElement;
const mobile: { const mobile: {
notif: { notif: {