Detect uncalled function statements #47698
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
β Suggestion
Today TS can detect uncalled functions that appear in conditionals. I propose also extending this to uncalled functions that appear as statements
π Motivating Example
π» Use Cases
This can help catch a common programming mistake. As long as the function being checked has a
const
binding and is always a function type, I don't think there are cases where you actually want to writedoImportantStuff;
as a statementRelated issues
The text was updated successfully, but these errors were encountered: