Skip to content

Commit c3593ae

Browse files
committed
refactor: use verbatimModuleSyntax
1 parent ab58c07 commit c3593ae

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

src/entrypoints/alpha/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { create as createSelect, select } from '../../layers/5_select/select.js'
2-
export { Client, create, createPrefilled } from '../../layers/6_client/client.js'
3-
export { Input, InputPrefilled } from '../../layers/6_client/Settings/Input.js'
2+
export { type Client, create, createPrefilled } from '../../layers/6_client/client.js'
3+
export { type Input, type InputPrefilled } from '../../layers/6_client/Settings/Input.js'

src/entrypoints/main.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ export { gql } from '../legacy/functions/gql.js'
1414
export { rawRequest } from '../legacy/functions/rawRequest.js'
1515
export { analyzeDocument } from '../legacy/helpers/analyzeDocument.js'
1616
export {
17-
BatchRequestDocument,
18-
BatchRequestsExtendedOptions,
19-
BatchRequestsOptions,
17+
type BatchRequestDocument,
18+
type BatchRequestsExtendedOptions,
19+
type BatchRequestsOptions,
2020
ClientError,
21-
GraphQLResponse,
21+
type GraphQLResponse,
2222
type RawRequestOptions,
2323
request,
2424
type RequestDocument,
2525
type RequestExtendedOptions,
26-
RequestMiddleware,
26+
type RequestMiddleware,
2727
type RequestOptions,
28-
ResponseMiddleware,
28+
type ResponseMiddleware,
2929
type Variables,
3030
}
3131
export default request
3232

33-
export { RequestInitExtended } from '../legacy/helpers/types.js'
33+
export { type RequestInitExtended } from '../legacy/helpers/types.js'

src/layers/6_client/Settings/client.create.config.output.test-d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-disable */
2-
import { ExecutionResult } from 'graphql'
2+
import { type ExecutionResult } from 'graphql'
33
import { describe } from 'node:test'
44
import { expectTypeOf, test } from 'vitest'
55
import { Graffle } from '../../../../tests/_/schema/generated/__.js'
66
import { schema } from '../../../../tests/_/schema/schema.js'
7-
import { GraphQLExecutionResultError } from '../../../lib/graphql.js'
8-
import { SimplifyDeep } from '../../../lib/prelude.js'
9-
import { EnvelopeTransportMemory } from './Config.js'
7+
import { type GraphQLExecutionResultError } from '../../../lib/graphql.js'
8+
import { type SimplifyDeep } from '../../../lib/prelude.js'
9+
import { type EnvelopeTransportMemory } from './Config.js'
1010

1111
const C = Graffle.create
1212

src/layers/6_client/rootTypeMethods.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { expectTypeOf, test } from 'vitest'
33
import { Graffle } from '../../../tests/_/schema/generated/__.js'
44
import * as Schema from '../../../tests/_/schema/schema.js'
5-
import { GraphQLExecutionResultError } from '../../lib/graphql.js'
5+
import { type GraphQLExecutionResultError } from '../../lib/graphql.js'
66

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

src/lib/anyware/__.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import { describe, expectTypeOf, test } from 'vitest'
44
import { Result } from '../../../tests/_/schema/generated/SchemaRuntime.js'
55
import { ContextualError } from '../errors/ContextualError.js'
6-
import { MaybePromise } from '../prelude.js'
6+
import { type MaybePromise } from '../prelude.js'
77
import { Anyware } from './__.js'
8-
import { SomeHook } from './main.js'
8+
import { type SomeHook } from './main.js'
99

1010
type InputA = { valueA: string }
1111
type InputB = { valueB: string }

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
// Other
2727
"skipLibCheck": true,
2828
"esModuleInterop": true,
29-
"isolatedModules": false
29+
"isolatedModules": false,
30+
"verbatimModuleSyntax": true
3031
},
3132
"include": ["src", "tests", "examples"],
3233
"exclude": ["build"]

0 commit comments

Comments
 (0)