refactor: major package updates

This commit is contained in:
鲁树人
2025-10-16 01:00:38 +09:00
parent 2e52c67533
commit a11caaae92
34 changed files with 373 additions and 240 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export class WorkerClientBus<T = string> {
async request<R, P>(actionName: T, payload: P): Promise<R> {
return new Promise((resolve, reject) => {
const id = `request://${actionName}/${nanoid()}`;
const id = `request://${actionName as string}/${nanoid()}`;
this.idPromiseMap.set(id, [resolve, reject]);
this.worker.postMessage({
id,