Skip to content

Commit

Permalink
Removed test that depends on Typescript version
Browse files Browse the repository at this point in the history
  • Loading branch information
johnw42 committed Oct 12, 2023
1 parent b28b755 commit 01c6e4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion type-definitions/ts-tests/ordered-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ import { OrderedSet, Map } from 'immutable';
{
// .fromKeys

// $ExpectType OrderedSet<unknown>
// Can't use ExpectType here because the type will be either
// OrderedSet<unknown> for Typescript < 5.0 or OrderedSet<number> for
// Typescript > 5.0.
OrderedSet.fromKeys(Map<number, string>());

// $ExpectType OrderedSet<number>
Expand Down

0 comments on commit 01c6e4a

Please sign in to comment.