-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Effort: DifficultGood luck.Good luck.FixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Potential "safe" type guards based on in-office discussion:
- When guarded by
typeof x === 'function'
, remove any types from the union that do not have call or construct signatures - When guarded by
typeof x === 'object'
, remove all primitives from the union, as well as any types that have any call or construct signatures
Metadata
Metadata
Assignees
Labels
Effort: DifficultGood luck.Good luck.FixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript