This commit is contained in:
rizrmd 2024-05-19 14:57:23 +07:00
parent 965d47d57f
commit 572e1b3cc8
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,9 @@ export const initTypings = async (
watch: watch(typings_path), watch: watch(typings_path),
spawn: Bun.spawn({ spawn: Bun.spawn({
cmd: [ cmd: [
...`tsc --watch --moduleResolution node --emitDeclarationOnly --outFile ../typings.d.ts --declaration --noEmit false`.split( ...`${dir.path(
"node_modules/tsc"
)} --watch --moduleResolution node --emitDeclarationOnly --outFile ../typings.d.ts --declaration --noEmit false`.split(
" " " "
), ),
], ],

View File

@ -56,7 +56,7 @@ declare global {
index: { head: string[]; body: string[]; render: () => string }; index: { head: string[]; body: string[]; render: () => string };
prasi: { page_id?: string; params?: Record<string, any> }; prasi: { page_id?: string; params?: Record<string, any> };
}) => Promise<Response>; }) => Promise<Response>;
init: (arg: { port?: number }) => Promise<void>; init?: (arg: { port?: number }) => Promise<void>;
}; };
type IItem = { type IItem = {