-
Notifications
You must be signed in to change notification settings - Fork 748
Open
Description
Steps to reproduce
This is a contrived reproduction from a larger codebase. It looks like the error happens on line 24 where the inferred type of getItem(options.uuid) is always the same type as options.item as far as I can tell.
Behavior with [email protected]
The type of item is correctly narrowed to GenericItem at the end of the if block and no errors are shown.
Behavior with tsgo
The type of item becomes never and the error Property 'name' does not exist on type 'never' is shown.
Metadata
Metadata
Assignees
Labels
No labels