mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix linter warning
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user