$ errors.fyi/typescript/TS2366 74 namespaces · 3,092 codes
typescript · typescript/TS2366
TS2366

Function Lacks Return Statement

Not all code paths in a function return a value. Add explicit `return` statements to every branch, or adjust the declared return type to include `undefined`.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT