Skip to content

Commit 6f341a3

Browse files
Jackson KearlIvanGoncharov
Jackson Kearl
authored andcommittedAug 28, 2019
Replace index imports with specific paths
1 parent eff2a60 commit 6f341a3

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed
 

‎tstypes/execution/execute.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import Maybe from '../tsutils/Maybe';
22
import { PromiseOrValue } from '../jsutils/PromiseOrValue';
33
import { Path, addPath, pathToArray } from '../jsutils/Path';
44

5-
import { GraphQLError, locatedError } from '../error';
5+
import { GraphQLError } from '../error/GraphQLError';
6+
import { locatedError } from '../error/locatedError';
7+
68
import {
79
DirectiveNode,
810
DocumentNode,
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { PromiseOrValue } from '../jsutils/PromiseOrValue';
2+
13
/**
24
* Given an AsyncIterable and a callback function, return an AsyncIterator
35
* which produces values mapped via calling the callback function.
@@ -6,4 +8,4 @@ export default function mapAsyncIterator<T, U>(
68
iterable: AsyncIterable<T>,
79
callback: (arg: T) => PromiseOrValue<U>,
810
rejectCallback?: (arg: any) => PromiseOrValue<U>,
9-
): AsyncGenerator<U, void, void>;
11+
): any; // TS_SPECIFIC: es2018.asyncgenerator requires typescript@3.6

‎tstypes/utilities/coerceInputValue.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { GraphQLInputType } from '../type/definition';
2-
import { GraphQLError } from '../error';
2+
import { GraphQLError } from '../error/GraphQLError';
33

44
type OnErrorCB = (
55
path: ReadonlyArray<string | number>,

‎tstypes/validation/ValidationContext.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Maybe from '../tsutils/Maybe';
2-
import { GraphQLError } from '../error';
2+
import { GraphQLError } from '../error/GraphQLError';
33
import { ASTVisitor } from '../language/visitor';
44
import {
55
DocumentNode,

‎tstypes/validation/rules/PossibleTypeExtensions.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SDLValidationContext } from '../ValidationContext';
33

44
export function extendingUnknownTypeMessage(
55
typeName: string,
6-
suggestedTypes: $ReadOnlyArray<string>,
6+
suggestedTypes: ReadonlyArray<string>,
77
): string;
88

99
export function extendingDifferentTypeKindMessage(

‎tstypes/validation/rules/UniqueDirectiveNames.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ASTVisitor } from '../../language/visitor';
2-
import { ASTValidationContext } from '../ValidationContext';
2+
import { SDLValidationContext } from '../ValidationContext';
33

44
export function duplicateDirectiveNameMessage(directiveName: string): string;
55

‎tstypes/validation/validate.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GraphQLError } from '../error';
1+
import { GraphQLError } from '../error/GraphQLError';
22
import { DocumentNode } from '../language/ast';
33
import { GraphQLSchema } from '../type/schema';
44
import { TypeInfo } from '../utilities/TypeInfo';

0 commit comments

Comments
 (0)
Please sign in to comment.