Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Sep 1, 2022
1 parent db9c572 commit c915c5c
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions packages/core/src/types/schema/graphql-ts-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,34 +217,44 @@ export const CalendarDay = graphqlTsSchema.graphql.scalar<string>(
})
);

export type NullableType<Context extends KeystoneContext<any> = KeystoneContext> = graphqlTsSchema.NullableType<Context>;
export type Type<Context extends KeystoneContext<any> = KeystoneContext> = graphqlTsSchema.Type<Context>;
export type NullableOutputType<Context extends KeystoneContext<any> = KeystoneContext> = graphqlTsSchema.NullableOutputType<Context>;
export type OutputType<Context extends KeystoneContext<any> = KeystoneContext> = graphqlTsSchema.OutputType<Context>;
export type NullableType<Context extends KeystoneContext<any> = KeystoneContext> =
graphqlTsSchema.NullableType<Context>;
export type Type<Context extends KeystoneContext<any> = KeystoneContext> =
graphqlTsSchema.Type<Context>;
export type NullableOutputType<Context extends KeystoneContext<any> = KeystoneContext> =
graphqlTsSchema.NullableOutputType<Context>;
export type OutputType<Context extends KeystoneContext<any> = KeystoneContext> =
graphqlTsSchema.OutputType<Context>;

export type Field<
Source,
Args extends Record<string, graphqlTsSchema.Arg<any>>,
TType extends OutputType<Context>,
Key extends string,
Context extends KeystoneContext<any> = KeystoneContext,
Context extends KeystoneContext<any> = KeystoneContext
> = graphqlTsSchema.Field<Source, Args, TType, Key, Context>;

export type FieldResolver<
Source,
Args extends Record<string, graphqlTsSchema.Arg<any>>,
TType extends OutputType<Context>,
Context extends KeystoneContext<any> = KeystoneContext,
Context extends KeystoneContext<any> = KeystoneContext
> = graphqlTsSchema.FieldResolver<Source, Args, TType, Context>;
export type ObjectType<Source, Context extends KeystoneContext<any> = KeystoneContext> = graphqlTsSchema.ObjectType<Source, Context>;
export type UnionType<Source, Context extends KeystoneContext<any> = KeystoneContext> = graphqlTsSchema.UnionType<Source, Context>;
export type ObjectType<
Source,
Context extends KeystoneContext<any> = KeystoneContext
> = graphqlTsSchema.ObjectType<Source, Context>;
export type UnionType<
Source,
Context extends KeystoneContext<any> = KeystoneContext
> = graphqlTsSchema.UnionType<Source, Context>;
export type InterfaceType<
Source,
Fields extends Record<string, graphqlTsSchema.InterfaceField<any, OutputType, Context>>,
Context extends KeystoneContext<any>,
Context extends KeystoneContext<any>
> = graphqlTsSchema.InterfaceType<Source, Fields, Context>;
export type InterfaceField<
Args extends Record<string, graphqlTsSchema.Arg<any>>,
TType extends OutputType,
Context extends KeystoneContext<any>,
Context extends KeystoneContext<any>
> = graphqlTsSchema.InterfaceField<Args, TType, Context>;

0 comments on commit c915c5c

Please sign in to comment.