Skip to content

Commit 1ad6bfc

Browse files
committed
refactor: global registry to types dir
1 parent c94c574 commit 1ad6bfc

File tree

16 files changed

+127
-126
lines changed

16 files changed

+127
-126
lines changed

src/entrypoints/utilities-for-generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type {
1010
} from '../layers/6_client/handleOutput.js'
1111
export { type DocumentRunner } from '../layers/6_client/requestMethods/document.js'
1212
export type { Config } from '../layers/6_client/Settings/Config.js'
13-
export { type GlobalRegistry } from '../layers/GlobalRegistry.js'
1413
export { type Exact, type ExactNonEmpty, type UnionExpanded } from '../lib/prelude.js'
1514
export { TypeFunction } from '../lib/type-function/__.js'
15+
export { type GlobalRegistry } from '../types/GlobalRegistry/GlobalRegistry.js'
1616
export { type SchemaDrivenDataMap } from '../types/SchemaDrivenDataMap/__.js'

src/extensions/SchemaErrors/global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GlobalRegistry } from '../../layers/GlobalRegistry.js'
1+
import type { GlobalRegistry } from '../../types/GlobalRegistry/GlobalRegistry.js'
22

33
declare global {
44
namespace GraffleGlobal {

src/generator/generators/Schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { SchemaKit } from '../../layers/1_Schema/__.js'
2-
import type { GlobalRegistry } from '../../layers/GlobalRegistry.js'
32
import { Code } from '../../lib/Code.js'
43
import { Grafaid } from '../../lib/grafaid/__.js'
54
import { entries, isObjectEmpty, values } from '../../lib/prelude.js'
5+
import type { GlobalRegistry } from '../../types/GlobalRegistry/GlobalRegistry.js'
66
import type { Config } from '../config/config.js'
77
import { identifiers } from '../helpers/identifiers.js'
88
import { createModuleGenerator } from '../helpers/moduleGenerator.js'

src/layers/1_Schema/Hybrid/types/Scalar/Scalar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { IsAny, IsNever } from 'type-fest'
22
import type { Grafaid } from '../../../../../lib/grafaid/__.js'
3-
import type { GlobalRegistry } from '../../../../GlobalRegistry.js'
3+
import type { GlobalRegistry } from '../../../../../types/GlobalRegistry/GlobalRegistry.js'
44
import type { Codec, Mapper } from './codec.js'
55
import { JavaScriptScalarCodecs } from './nativeScalarCodecs.js'
66

src/layers/5_select/select.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { identityProxy } from '../../lib/prelude.js'
2-
import type { GlobalRegistry } from '../GlobalRegistry.js'
2+
import type { GlobalRegistry } from '../../types/GlobalRegistry/GlobalRegistry.js'
33

44
// dprint-ignore
55
type Create = <$Name extends GlobalRegistry.ClientNames>(name: $Name) =>

src/layers/6_client/Settings/Config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { GraphQLSchema } from 'graphql'
22
import type { RequireProperties } from '../../../lib/prelude.js'
3+
import type { GlobalRegistry } from '../../../types/GlobalRegistry/GlobalRegistry.js'
34
import type { SchemaDrivenDataMap } from '../../../types/SchemaDrivenDataMap/__.js'
45
import type { TransportHttp, TransportMemory } from '../../5_request/types.js'
5-
import type { GlobalRegistry } from '../../GlobalRegistry.js'
66
import type { Extension } from '../extension/extension.js'
77
import type { TransportHttpInput } from '../transportHttp/request.js'
88
import type { InputStatic } from './Input.js'

src/layers/6_client/Settings/Input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { GraphQLSchema } from 'graphql'
2+
import type { GlobalRegistry } from '../../../types/GlobalRegistry/GlobalRegistry.js'
23
import type { SchemaDrivenDataMap } from '../../../types/SchemaDrivenDataMap/__.js'
3-
import type { GlobalRegistry } from '../../GlobalRegistry.js'
44
import type { WithInput } from './inputIncrementable/inputIncrementable.js'
55

66
export type URLInput = URL | string

src/layers/6_client/Settings/InputToConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { IsUnknown } from 'type-fest'
22
import type { ConfigManager } from '../../../lib/config-manager/__.js'
3+
import type { GlobalRegistry } from '../../../types/GlobalRegistry/GlobalRegistry.js'
34
import { Transport } from '../../5_request/types.js'
4-
import type { GlobalRegistry } from '../../GlobalRegistry.js'
55
import { defaultMethodMode } from '../transportHttp/request.js'
66
import { outputConfigDefault, type TransportConfigHttp, type TransportConfigMemory } from './Config.js'
77
import type { InputOutputEnvelopeLonghand, InputStatic, URLInput } from './Input.js'

src/layers/6_client/Settings/inputIncrementable/inputIncrementable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { GlobalRegistry } from '../../../../types/GlobalRegistry/GlobalRegistry.js'
12
import type { Transport, TransportMemory } from '../../../5_request/types.js'
2-
import type { GlobalRegistry } from '../../../GlobalRegistry.js'
33
import type { TransportHttpInput } from '../../transportHttp/request.js'
44
import type { Config } from '../Config.js'
55
import type { NormalizeInput } from '../InputToConfig.js'

src/layers/6_client/clientPrefilled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { HasRequiredKeys } from 'type-fest'
22
import type { Exact } from '../../lib/prelude.js'
3+
import type { GlobalRegistry } from '../../types/GlobalRegistry/GlobalRegistry.js'
34
import type { SchemaDrivenDataMap } from '../../types/SchemaDrivenDataMap/__.js'
4-
import type { GlobalRegistry } from '../GlobalRegistry.js'
55
import { type Client, create } from './client.js'
66
import type { InputBase } from './Settings/Input.js'
77
import type { NormalizeInput } from './Settings/InputToConfig.js'

0 commit comments

Comments
 (0)