Skip to content

Commit

Permalink
Fix expectExactType to be compatible with TypeScript 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jan 25, 2024
1 parent bcfc3cd commit 2205a4a
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 2205a4a

Please sign in to comment.