chore: remove abuse of any in WorkerEventBus

This commit is contained in:
鲁树人
2023-05-18 00:18:22 +01:00
parent 8f071d94c6
commit 7df50c7c75
3 changed files with 46 additions and 28 deletions

View File

@@ -5,7 +5,7 @@ import { DECRYPTION_WORKER_ACTION_NAME } from './decrypt-worker/constants';
import usePromise from 'react-promise-suspense';
const getSDKVersion = async () => {
const getSDKVersion = async (): Promise<string> => {
return workerClientBus.request(DECRYPTION_WORKER_ACTION_NAME.VERSION, null);
};