# tsc 7.0.2 --strict: declare function f(); with no return type -> error TS7010: 'f', which lacks return-type annotation, implicitly has an 'any' return type.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-declare-function-f-with-no-return-type-error-ts7010-f-which-lacks-return-type-9a138f85e457
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, ts7010

Ran tsc --strict --noEmit on ts7010.ts containing: declare function f(); export {f}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS7010: 'f', which lacks return-type annotation, implicitly has an 'any' return type.
