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
The type definition for the type guard function isOrderedSet inside is missing the is OrderedSet<unknown> type predicate here inside the namespace OrderedSet
): maybeOrderedMap is OrderedMap<unknown,unknown>;
How to reproduce
The text was updated successfully, but these errors were encountered:
andyk
changed the title
Type predicate missing on isOrderedSet function declaration
Type predicate missing on isOrderedSet function type declaration
Aug 1, 2023
What happened
The type definition for the type guard
function isOrderedSet
inside is missing theis OrderedSet<unknown>
type predicate here inside thenamespace OrderedSet
immutable-js/type-definitions/immutable.d.ts
Line 1916 in a4eaaf0
The type predicated exists on the ValueObject definition of the function, as you can see here:
immutable-js/type-definitions/immutable.d.ts
Lines 5435 to 5438 in a4eaaf0
Seems like a small oversight and quick fix?
I checked that other guards do have the type predicate in both declarations, e.g. OrderedMap:
immutable-js/type-definitions/immutable.d.ts
Lines 1514 to 1516 in a4eaaf0
immutable-js/type-definitions/immutable.d.ts
Lines 5416 to 5419 in a4eaaf0
How to reproduce
The text was updated successfully, but these errors were encountered: