We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3fb2e8 commit 249cb79Copy full SHA for 249cb79
‎types/hasura/index.d.ts‎
@@ -33,7 +33,7 @@ export interface JSONBColumnBoolExp extends ColumnBoolExp<string> {
33
_has_keys_any?: string | undefined;
34
}
35
36
-type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
+type Equals<X, Y> = [X, Y, keyof X, keyof Y] extends [Y, X, keyof Y, keyof X] ? true : false;
37
type ScalarType = string | number | boolean | ScalarJSON<unknown> | ScalarJSONB<unknown>;
38
type ObjectType = Record<string, ScalarType | Record<string, ScalarType> | Array<Record<string, ScalarType>>>;
39
export type ScalarJSON<T> = T & {
0 commit comments