diff --git a/app/srv/ws/sync/code/parts/init/typings.ts b/app/srv/ws/sync/code/parts/init/typings.ts index 67487add..fa835554 100644 --- a/app/srv/ws/sync/code/parts/init/typings.ts +++ b/app/srv/ws/sync/code/parts/init/typings.ts @@ -36,7 +36,9 @@ export const initTypings = async ( watch: watch(typings_path), spawn: Bun.spawn({ 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( " " ), ], diff --git a/app/srv/ws/sync/code/templates/typings/global_d_ts b/app/srv/ws/sync/code/templates/typings/global_d_ts index d4ed029a..862d2d3f 100644 --- a/app/srv/ws/sync/code/templates/typings/global_d_ts +++ b/app/srv/ws/sync/code/templates/typings/global_d_ts @@ -56,7 +56,7 @@ declare global { index: { head: string[]; body: string[]; render: () => string }; prasi: { page_id?: string; params?: Record }; }) => Promise; - init: (arg: { port?: number }) => Promise; + init?: (arg: { port?: number }) => Promise; }; type IItem = {