Fix linter warning
This commit is contained in:
parent
fb9806b5f9
commit
90e344e457
1 changed files with 1 additions and 1 deletions
|
@ -11709,7 +11709,7 @@ namespace ts {
|
|||
}
|
||||
if (types.length === 0) {
|
||||
// For an async function, the return type will not be void, but rather a Promise for void.
|
||||
return isAsync ? createPromiseReturnType(func, voidType): voidType;
|
||||
return isAsync ? createPromiseReturnType(func, voidType) : voidType;
|
||||
}
|
||||
}
|
||||
// When yield/return statements are contextually typed we allow the return type to be a union type.
|
||||
|
|
Loading…
Reference in a new issue