diff --git a/src/puter-js/types/modules/workers.d.ts b/src/puter-js/types/modules/workers.d.ts index 90ffe9f48..374075b66 100644 --- a/src/puter-js/types/modules/workers.d.ts +++ b/src/puter-js/types/modules/workers.d.ts @@ -1,22 +1,25 @@ export interface WorkerInfo { name: string; url: string; - file_path?: string; - file_uid?: string; - created_at?: string; + file_path: string; + file_uid: string; + created_at: string; } export interface WorkerDeployment { success: boolean; url: string; - errors?: unknown[]; + errors?: string[]; } export class WorkersHandler { create (workerName: string, filePath: string, appName?: string): Promise; delete (workerName: string): Promise; exec (request: RequestInfo | URL, init?: RequestInit): Promise; - get (workerName: string): Promise; + get (workerName: string): Promise; list (): Promise; - getLoggingHandle (workerName: string): Promise void }>; + getLoggingHandle (workerName: string): Promise void; + onLog: (event: MessageEvent) => void; + }>; }