You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS2366: Function lacks ending return statement in function with unknown return type with implicit return on some code paths, despite noImplicitReturns turned offΒ #53473
> tsc --noEmit
index.ts:1:18 - error TS2366: Function lacks ending return statement and return type does not include 'undefined'.
1 function test(): unknown {
~~~~~~~
π Expected behavior
No error, if the function return type is unknown I'd expect that to allow implicit return of undefined.