Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Apr 27, 2024
1 parent 849dc39 commit 03adb2b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/entrypoints/alpha/schema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from '../../layers/1_Schema/__.js'
export { ResultSet } from '../../layers/3_IO/ResultSet/__.js'
export { SelectionSet } from '../../layers/3_IO/SelectionSet/__.js'
export * from '../../layers/1_Schema/__.js'
2 changes: 1 addition & 1 deletion src/layers/4_client/Config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ExecutionResult } from 'graphql'
import type { GlobalRegistry } from '../2_generator/globalRegistry.js'
import type { GraphQLExecutionResultError } from '../../lib/graphql.js'
import type { SetProperty } from '../../lib/prelude.js'
import type { Schema } from '../1_Schema/__.js'
import type { GlobalRegistry } from '../2_generator/globalRegistry.js'

export type ReturnModeType =
| ReturnModeTypeGraphQL
Expand Down
4 changes: 2 additions & 2 deletions src/layers/4_client/RootTypeMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { OperationName } from '../../lib/graphql.js'
import type { Exact } from '../../lib/prelude.js'
import type { TSError } from '../../lib/TSError.js'
import type { InputFieldsAllNullable, Schema } from '../1_Schema/__.js'
import type { ResultSet } from '../3_IO/ResultSet/__.js'
import type { SelectionSet } from '../3_IO/SelectionSet/__.js'
import type {
AugmentRootTypeSelectionWithTypename,
Config,
Expand All @@ -10,8 +12,6 @@ import type {
ReturnModeRootField,
ReturnModeRootType,
} from './Config.js'
import type { ResultSet } from '../3_IO/ResultSet/__.js'
import type { SelectionSet } from '../3_IO/SelectionSet/__.js'

type RootTypeFieldContext = {
Config: Config
Expand Down
6 changes: 3 additions & 3 deletions src/layers/4_client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import type { ExecutionResult } from 'graphql'
import { type DocumentNode, execute, graphql, type GraphQLSchema } from 'graphql'
import type { ExcludeUndefined } from 'type-fest/source/required-deep.js'
import request from '../../entrypoints/main.js'
import type { GlobalRegistry } from '../2_generator/globalRegistry.js'
import { Errors } from '../../lib/errors/__.js'
import type { RootTypeName, Variables } from '../../lib/graphql.js'
import { isPlainObject } from '../../lib/prelude.js'
import type { Object$2 } from '../1_Schema/__.js'
import { Schema } from '../1_Schema/__.js'
import { readMaybeThunk } from '../1_Schema/core/helpers.js'
import type { GlobalRegistry } from '../2_generator/globalRegistry.js'
import { SelectionSet } from '../3_IO/SelectionSet/__.js'
import type { Context, DocumentObject, GraphQLObjectSelection } from '../3_IO/SelectionSet/toGraphQLDocumentString.js'
import type {
ApplyInputDefaults,
Config,
Expand All @@ -20,8 +22,6 @@ import * as CustomScalars from './customScalars.js'
import type { DocumentFn } from './document.js'
import { rootTypeNameToOperationName, toDocumentString } from './document.js'
import type { GetRootTypeMethods } from './RootTypeMethods.js'
import { SelectionSet } from '../3_IO/SelectionSet/__.js'
import type { Context, DocumentObject, GraphQLObjectSelection } from '../3_IO/SelectionSet/toGraphQLDocumentString.js'

// dprint-ignore
export type Client<$Index extends Schema.Index, $Config extends Config> =
Expand Down
2 changes: 1 addition & 1 deletion src/layers/4_client/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { MergeExclusive, NonEmptyObject } from 'type-fest'
import type { IsMultipleKeys } from '../../lib/prelude.js'
import type { TSError } from '../../lib/TSError.js'
import type { Schema } from '../1_Schema/__.js'
import type { AugmentRootTypeSelectionWithTypename, Config, OrThrowifyConfig, ReturnModeRootType } from './Config.js'
import type { ResultSet } from '../3_IO/ResultSet/__.js'
import { SelectionSet } from '../3_IO/SelectionSet/__.js'
import type { Context, DocumentObject } from '../3_IO/SelectionSet/toGraphQLDocumentString.js'
import type { AugmentRootTypeSelectionWithTypename, Config, OrThrowifyConfig, ReturnModeRootType } from './Config.js'

// dprint-ignore
export type DocumentFn<$Config extends Config, $Index extends Schema.Index> =
Expand Down
2 changes: 1 addition & 1 deletion src/layers/4_select/select.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SelectionSet } from '../3_IO/SelectionSet/__.js'
import type { RootTypeName } from '../../lib/graphql.js'
import type { Exact } from '../../lib/prelude.js'
import type { Schema } from '../1_Schema/__.js'
import type { SelectionSet } from '../3_IO/SelectionSet/__.js'

// dprint-ignore
type TypeSelectionSets<$Index extends Schema.Index> =
Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/httpMethod.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test, vitest } from 'vitest'
import { gql, GraphQLClient } from '../../src/entrypoints/main.js'
import { CONTENT_TYPE_HEADER, statusCodes } from '../../src/lib/http.js'
import type { RequestConfig } from '../../src/legacy/helpers/types.js'
import { CONTENT_TYPE_HEADER, statusCodes } from '../../src/lib/http.js'

test(`mutation forces a POST method even if input wants GET for query`, async () => {
const fetch = vitest.fn().mockImplementation((_: string, requestConfig: RequestConfig) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/json-serializer.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { beforeEach, describe, expect, test, vitest } from 'vitest'
import { GraphQLClient } from '../../src/entrypoints/main.js'
import { CONTENT_TYPE_HEADER, statusCodes } from '../../src/lib/http.js'
import type { Fetch, Variables } from '../../src/legacy/helpers/types.js'
import { CONTENT_TYPE_HEADER, statusCodes } from '../../src/lib/http.js'
import { setupMockServer } from './__helpers.js'

const ctx = setupMockServer()
Expand Down

0 comments on commit 03adb2b

Please sign in to comment.