Skip to content

Commit ff3115c

Browse files
Move Equals constraint into an intersection type. (#2123)
1 parent c940a9f commit ff3115c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/typeTestHelpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export declare const exactType: <T, U>(
4747
) => IfEquals<T, U>
4848

4949
export function expectExactType<T>(t: T) {
50-
return <U extends Equals<T, U>>(u: U) => {}
50+
return <U extends T>(u: U & Equals<T, U>) => {}
5151
}
5252

5353
type EnsureUnknown<T> = IsUnknown<T, any, never>

0 commit comments

Comments
 (0)