Skip to content

Commit

Permalink
Prettier Hello?
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Aug 1, 2022
1 parent f0b7668 commit 8d160c2
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions packages/graphql-yoga/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createFetch } from '@whatwg-node/fetch'
export interface ExecutionPatchResult<
TData = { [key: string]: any },
TExtensions = { [key: string]: any },
> {
> {
errors?: ReadonlyArray<GraphQLError>
data?: TData | null
path?: ReadonlyArray<string | number>
Expand All @@ -18,7 +18,7 @@ export interface ExecutionPatchResult<
export interface GraphQLParams<
TVariables = Record<string, any>,
TExtensions = Record<string, any>,
> {
> {
operationName?: string
query?: string
variables?: TVariables
Expand Down Expand Up @@ -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<string, any>,
TServerContext extends Record<string, any> = Record<string, any>,
> = {
/** GraphQL Operation to execute */
document: string | TypedDocumentNode<TData, TVariables>
/** 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<TData, TVariables>
/** 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<R = any> {
Expand Down

0 comments on commit 8d160c2

Please sign in to comment.