mirror of
https://git.um-react.app/um/um-react.git
synced 2026-10-23 06:53:01 +00:00
refactor: major package updates
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user