# tsc 7.0.2 --strict: if(f){} where f is a function -> error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead?

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-if-f-where-f-is-a-function-error-ts2774-this-condition-will-always-return-true-0cfd345388fc
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, ts2774

Ran tsc --strict --noEmit on ts2774.ts containing: const f=()=>1; if(f){} export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead?
