Skip to content

Commit 112536e

Browse files
committed
More explicit imports with less circularity
1 parent d06b3bc commit 112536e

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

packages/schema/src/api-without-context/input.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { EnumType } from "./enum";
77
import { ScalarType } from "./scalars";
88
import type { NullableOutputType, OutputType } from "../output";
99
import type { Type } from "../type";
10-
import { ListType, NonNullType } from "..";
10+
import { ListType, NonNullType } from "./list-and-non-null";
1111

1212
export type __toMakeTypeScriptEmitImportsForItemsOnlyUsedInJSDoc = [
1313
NullableOutputType<any>,

packages/schema/src/output.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
import {
1+
import type {
22
GraphQLFieldConfigMap,
33
GraphQLFieldExtensions,
44
GraphQLInputType,
5-
GraphQLInterfaceType,
65
GraphQLInterfaceTypeExtensions,
76
GraphQLIsTypeOfFn,
87
GraphQLList,
9-
GraphQLObjectType,
108
GraphQLObjectTypeExtensions,
119
GraphQLOutputType,
1210
GraphQLResolveInfo,
1311
GraphQLTypeResolver,
14-
GraphQLUnionType,
1512
GraphQLType,
1613
} from "graphql/type/definition";
1714
import {
15+
GraphQLInterfaceType,
16+
GraphQLObjectType,
17+
GraphQLUnionType,
18+
} from "graphql/type/definition";
19+
import type {
1820
Arg,
1921
InferValueFromArgs,
2022
InputType,

packages/schema/src/type.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import {
2-
NullableInputType,
3-
NullableOutputType,
1+
import type { InputType, NullableInputType } from "./api-without-context/input";
2+
import type {
3+
list,
4+
nonNull,
45
NonNullType,
5-
InputType,
6-
OutputType,
7-
} from ".";
8-
import { list, nonNull } from "./api-without-context/list-and-non-null";
6+
} from "./api-without-context/list-and-non-null";
7+
import type { NullableOutputType, OutputType } from "./output";
98

109
export type __toMakeTypeScriptEmitImportsForItemsOnlyUsedInJSDoc = [
1110
InputType,

0 commit comments

Comments
 (0)