Skip to content

Commit 249cb79

Browse files
🤖 Merge PR DefinitelyTyped#71426 [hasura] Update Equals type to use weaker comparison by @MichaelMitchell-at
Co-authored-by: MichaelMitchell-at <=>
1 parent e3fb2e8 commit 249cb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎types/hasura/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface JSONBColumnBoolExp extends ColumnBoolExp<string> {
3333
_has_keys_any?: string | undefined;
3434
}
3535

36-
type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
36+
type Equals<X, Y> = [X, Y, keyof X, keyof Y] extends [Y, X, keyof Y, keyof X] ? true : false;
3737
type ScalarType = string | number | boolean | ScalarJSON<unknown> | ScalarJSONB<unknown>;
3838
type ObjectType = Record<string, ScalarType | Record<string, ScalarType> | Array<Record<string, ScalarType>>>;
3939
export type ScalarJSON<T> = T & {

0 commit comments

Comments
 (0)