👽 fix typescript typing error (#1096)

This commit is contained in:
Kuitos 2020-11-24 22:15:54 +08:00 committed by GitHub
parent dfac957323
commit f70027cb47
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@
"prettier": "^2.1.2",
"rimraf": "^3.0.0",
"ts-jest": "^25.2.1",
"typescript": "^3.4.5"
"typescript": "^4.1.2"
},
"resolutions": {
"@types/react": "^16.x"

View File

@ -82,7 +82,7 @@ export function validateExportLifecycle(exports: any) {
class Deferred<T> {
promise: Promise<T>;
resolve!: (value?: T | PromiseLike<T>) => void;
resolve!: (value: T | PromiseLike<T>) => void;
reject!: (reason?: any) => void;