You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeValues="A"|"B";constvalues: NonEmptyArray<Values>=["A","B"];constfilterValues=(value: Values): value is "B"=>value==="B";constfilteredValues=nonEmptyArray.filter(filterValues)(values);
filteredValues is Option<NonEmptyArray<Values>>
Expected behavior
filteredValues is Option<NonEmptyArray<"B">>
Your environment
Which versions of fp-ts are affected by this issue? Did this work in previous versions of fp-ts?
Software
Version(s)
fp-ts
2.9.3
TypeScript
4.1.3
The text was updated successfully, but these errors were encountered:
🐛 Bug report
Current Behavior
filteredValues
isOption<NonEmptyArray<Values>>
Expected behavior
filteredValues
isOption<NonEmptyArray<"B">>
Your environment
Which versions of fp-ts are affected by this issue? Did this work in previous versions of fp-ts?
The text was updated successfully, but these errors were encountered: