Skip to content

Commit

Permalink
Merge pull request #690 from aryaemami59/fix-expectExactType
Browse files Browse the repository at this point in the history
Fix `expectExactType` to be compatible with TypeScript 5.4
  • Loading branch information
EskiMojo14 authored Jan 25, 2024
2 parents ee65779 + 2205a4a commit 1274648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript_test/typesTestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ export type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <
: false

export function expectExactType<T>(t: T) {
return <U extends Equals<T, U>>(u: U) => {}
return <U extends T>(u: U & Equals<T, U>) => {}
}

0 comments on commit 1274648

Please sign in to comment.