Description
What happened
The type definition for the type guard function isOrderedSet
inside is missing the is OrderedSet<unknown>
type predicate here inside the namespace 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