Skip to content

Commit

Permalink
Fix bad expectNotAssignableCalls calls in unknown-array.ts unit t…
Browse files Browse the repository at this point in the history
…est (#865)
  • Loading branch information
trevorade authored Apr 13, 2024
1 parent 3f77d93 commit c1d2e0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test-d/unknown-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ expectAssignable<UnknownArray>([]);
expectAssignable<UnknownArray>(['foo']);

expectNotAssignable<UnknownArray>(null);
expectNotAssignable(undefined);
expectNotAssignable({});
expectNotAssignable({0: 1});
expectNotAssignable(1);
expectNotAssignable(Date);
expectNotAssignable<UnknownArray>(undefined);
expectNotAssignable<UnknownArray>({});
expectNotAssignable<UnknownArray>({0: 1});
expectNotAssignable<UnknownArray>(1);
expectNotAssignable<UnknownArray>(Date);

type IsArray<T> = T extends UnknownArray ? true : false;

Expand Down

0 comments on commit c1d2e0a

Please sign in to comment.