Skip to content

Commit

Permalink
refactor: use verbatimModuleSyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Aug 4, 2024
1 parent ab58c07 commit c3593ae
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/entrypoints/alpha/client.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { create as createSelect, select } from '../../layers/5_select/select.js'
export { Client, create, createPrefilled } from '../../layers/6_client/client.js'
export { Input, InputPrefilled } from '../../layers/6_client/Settings/Input.js'
export { type Client, create, createPrefilled } from '../../layers/6_client/client.js'
export { type Input, type InputPrefilled } from '../../layers/6_client/Settings/Input.js'
14 changes: 7 additions & 7 deletions src/entrypoints/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ export { gql } from '../legacy/functions/gql.js'
export { rawRequest } from '../legacy/functions/rawRequest.js'
export { analyzeDocument } from '../legacy/helpers/analyzeDocument.js'
export {
BatchRequestDocument,
BatchRequestsExtendedOptions,
BatchRequestsOptions,
type BatchRequestDocument,
type BatchRequestsExtendedOptions,
type BatchRequestsOptions,
ClientError,
GraphQLResponse,
type GraphQLResponse,
type RawRequestOptions,
request,
type RequestDocument,
type RequestExtendedOptions,
RequestMiddleware,
type RequestMiddleware,
type RequestOptions,
ResponseMiddleware,
type ResponseMiddleware,
type Variables,
}
export default request

export { RequestInitExtended } from '../legacy/helpers/types.js'
export { type RequestInitExtended } from '../legacy/helpers/types.js'
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable */
import { ExecutionResult } from 'graphql'
import { type ExecutionResult } from 'graphql'
import { describe } from 'node:test'
import { expectTypeOf, test } from 'vitest'
import { Graffle } from '../../../../tests/_/schema/generated/__.js'
import { schema } from '../../../../tests/_/schema/schema.js'
import { GraphQLExecutionResultError } from '../../../lib/graphql.js'
import { SimplifyDeep } from '../../../lib/prelude.js'
import { EnvelopeTransportMemory } from './Config.js'
import { type GraphQLExecutionResultError } from '../../../lib/graphql.js'
import { type SimplifyDeep } from '../../../lib/prelude.js'
import { type EnvelopeTransportMemory } from './Config.js'

const C = Graffle.create

Expand Down
2 changes: 1 addition & 1 deletion src/layers/6_client/rootTypeMethods.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { expectTypeOf, test } from 'vitest'
import { Graffle } from '../../../tests/_/schema/generated/__.js'
import * as Schema from '../../../tests/_/schema/schema.js'
import { GraphQLExecutionResultError } from '../../lib/graphql.js'
import { type GraphQLExecutionResultError } from '../../lib/graphql.js'

const graffle = Graffle.create({ schema: Schema.schema })

Expand Down
4 changes: 2 additions & 2 deletions src/lib/anyware/__.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { describe, expectTypeOf, test } from 'vitest'
import { Result } from '../../../tests/_/schema/generated/SchemaRuntime.js'
import { ContextualError } from '../errors/ContextualError.js'
import { MaybePromise } from '../prelude.js'
import { type MaybePromise } from '../prelude.js'
import { Anyware } from './__.js'
import { SomeHook } from './main.js'
import { type SomeHook } from './main.js'

type InputA = { valueA: string }
type InputB = { valueB: string }
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
// Other
"skipLibCheck": true,
"esModuleInterop": true,
"isolatedModules": false
"isolatedModules": false,
"verbatimModuleSyntax": true
},
"include": ["src", "tests", "examples"],
"exclude": ["build"]
Expand Down

0 comments on commit c3593ae

Please sign in to comment.