- Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already createdFixedA PR has been merged for this issueA PR has been merged for this issue
Description
TS 2.0.3
See the comments and last line in the code below for expected/actual.
{typeFoo={foo: true};constisFoo=(foo: Foo)=>foo.foo;constxs=[{foo: true},undefined];isFoo(xs[1])// good, errorsconstx=undefinedasFoo|undefined;isFoo(x)// good, errorsxs.filter(isFoo)// bad, didn't fail, expected filter arg to fail, should be Foo | undefined}Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already createdFixedA PR has been merged for this issueA PR has been merged for this issue