Skip to content

Commit

Permalink
Replace index imports with specific paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl authored and IvanGoncharov committed Aug 28, 2019
1 parent eff2a60 commit 6f341a3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion tstypes/execution/execute.d.ts
Expand Up @@ -2,7 +2,9 @@ import Maybe from '../tsutils/Maybe';
import { PromiseOrValue } from '../jsutils/PromiseOrValue';
import { Path, addPath, pathToArray } from '../jsutils/Path';

import { GraphQLError, locatedError } from '../error';
import { GraphQLError } from '../error/GraphQLError';
import { locatedError } from '../error/locatedError';

import {
DirectiveNode,
DocumentNode,
Expand Down
4 changes: 3 additions & 1 deletion tstypes/subscription/mapAsyncIterator.d.ts
@@ -1,3 +1,5 @@
import { PromiseOrValue } from '../jsutils/PromiseOrValue';

/**
* Given an AsyncIterable and a callback function, return an AsyncIterator
* which produces values mapped via calling the callback function.
Expand All @@ -6,4 +8,4 @@ export default function mapAsyncIterator<T, U>(
iterable: AsyncIterable<T>,
callback: (arg: T) => PromiseOrValue<U>,
rejectCallback?: (arg: any) => PromiseOrValue<U>,
): AsyncGenerator<U, void, void>;
): any; // TS_SPECIFIC: es2018.asyncgenerator requires typescript@3.6
2 changes: 1 addition & 1 deletion tstypes/utilities/coerceInputValue.d.ts
@@ -1,5 +1,5 @@
import { GraphQLInputType } from '../type/definition';
import { GraphQLError } from '../error';
import { GraphQLError } from '../error/GraphQLError';

type OnErrorCB = (
path: ReadonlyArray<string | number>,
Expand Down
2 changes: 1 addition & 1 deletion tstypes/validation/ValidationContext.d.ts
@@ -1,5 +1,5 @@
import Maybe from '../tsutils/Maybe';
import { GraphQLError } from '../error';
import { GraphQLError } from '../error/GraphQLError';
import { ASTVisitor } from '../language/visitor';
import {
DocumentNode,
Expand Down
2 changes: 1 addition & 1 deletion tstypes/validation/rules/PossibleTypeExtensions.d.ts
Expand Up @@ -3,7 +3,7 @@ import { SDLValidationContext } from '../ValidationContext';

export function extendingUnknownTypeMessage(
typeName: string,
suggestedTypes: $ReadOnlyArray<string>,
suggestedTypes: ReadonlyArray<string>,
): string;

export function extendingDifferentTypeKindMessage(
Expand Down
2 changes: 1 addition & 1 deletion tstypes/validation/rules/UniqueDirectiveNames.d.ts
@@ -1,5 +1,5 @@
import { ASTVisitor } from '../../language/visitor';
import { ASTValidationContext } from '../ValidationContext';
import { SDLValidationContext } from '../ValidationContext';

export function duplicateDirectiveNameMessage(directiveName: string): string;

Expand Down
2 changes: 1 addition & 1 deletion tstypes/validation/validate.d.ts
@@ -1,4 +1,4 @@
import { GraphQLError } from '../error';
import { GraphQLError } from '../error/GraphQLError';
import { DocumentNode } from '../language/ast';
import { GraphQLSchema } from '../type/schema';
import { TypeInfo } from '../utilities/TypeInfo';
Expand Down

0 comments on commit 6f341a3

Please sign in to comment.