From 2205a4a6f3f3df833365a7dbe820aaa643a09b4e Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Thu, 25 Jan 2024 05:37:47 -0600 Subject: [PATCH] Fix `expectExactType` to be compatible with TypeScript 5.4 --- typescript_test/typesTestUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript_test/typesTestUtils.ts b/typescript_test/typesTestUtils.ts index 884733d20..f0ca45a20 100644 --- a/typescript_test/typesTestUtils.ts +++ b/typescript_test/typesTestUtils.ts @@ -25,5 +25,5 @@ export type IsEqual = (() => G extends A ? 1 : 2) extends < : false export function expectExactType(t: T) { - return >(u: U) => {} + return (u: U & Equals) => {} }