From e7871d302efb8dd7a1acf27d84deed04a4ba04e8 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Mon, 1 Aug 2022 11:59:18 +0300 Subject: [PATCH] Prettier Hello? --- packages/graphql-yoga/src/types.ts | 42 +++++++++++++++--------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/graphql-yoga/src/types.ts b/packages/graphql-yoga/src/types.ts index f1c9a7d1f5..8be3bda3e8 100644 --- a/packages/graphql-yoga/src/types.ts +++ b/packages/graphql-yoga/src/types.ts @@ -6,7 +6,7 @@ import { createFetch } from '@whatwg-node/fetch' export interface ExecutionPatchResult< TData = { [key: string]: any }, TExtensions = { [key: string]: any }, -> { + > { errors?: ReadonlyArray data?: TData | null path?: ReadonlyArray @@ -18,7 +18,7 @@ export interface ExecutionPatchResult< export interface GraphQLParams< TVariables = Record, TExtensions = Record, -> { + > { operationName?: string query?: string variables?: TVariables @@ -50,31 +50,31 @@ export interface YogaInitialContext { export type CORSOptions = | { - origin?: string[] | string - methods?: string[] - allowedHeaders?: string[] - exposedHeaders?: string[] - credentials?: boolean - maxAge?: number - } + origin?: string[] | string + methods?: string[] + allowedHeaders?: string[] + exposedHeaders?: string[] + credentials?: boolean + maxAge?: number + } | false export type GraphQLServerInject< TData = any, TVariables = Record, TServerContext extends Record = Record, -> = { - /** GraphQL Operation to execute */ - document: string | TypedDocumentNode - /** Variables for GraphQL Operation */ - variables?: TVariables - /** Name for GraphQL Operation */ - operationName?: string - /** Set any headers for the GraphQL request */ - headers?: HeadersInit -} & ({} extends TServerContext - ? { serverContext?: TServerContext } - : { serverContext: TServerContext }) + > = { + /** GraphQL Operation to execute */ + document: string | TypedDocumentNode + /** Variables for GraphQL Operation */ + variables?: TVariables + /** Name for GraphQL Operation */ + operationName?: string + /** Set any headers for the GraphQL request */ + headers?: HeadersInit + } & ({} extends TServerContext + ? { serverContext?: TServerContext } + : { serverContext: TServerContext }) declare global { interface ReadableStream {