Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Sort imports and use Flow's "import type" syntax (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored May 17, 2019
1 parent 4df4ccd commit 169e786
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
28 changes: 13 additions & 15 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,33 @@
* @flow strict
*/

import url from 'url';
import accepts from 'accepts';
import httpError from 'http-errors';
import { type $Request, type $Response } from 'express';
import {
Source,
validateSchema,
parse,
validate,
execute,
formatError,
validateSchema,
getOperationAST,
specifiedRules,
type ASTVisitor,
type DocumentNode,
type ValidationContext,
type ExecutionArgs,
type ExecutionResult,
type GraphQLError,
type GraphQLSchema,
type GraphQLFieldResolver,
type GraphQLTypeResolver,
} from 'graphql';
import type { ExecutionArgs, ExecutionResult } from 'graphql';
import httpError from 'http-errors';
import url from 'url';

import { parseBody } from './parseBody';
import { renderGraphiQL } from './renderGraphiQL';

import type {
DocumentNode,
GraphQLError,
GraphQLSchema,
GraphQLFieldResolver,
GraphQLTypeResolver,
ValidationContext,
ASTVisitor,
} from 'graphql';
import type { $Request, $Response } from 'express';

/**
* Used to configure the graphqlHTTP middleware by providing a schema
* and other configuration options.
Expand Down
6 changes: 3 additions & 3 deletions src/parseBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* @flow strict
*/

import contentType from 'content-type';
import zlib from 'zlib';
import getBody from 'raw-body';
import httpError from 'http-errors';
import querystring from 'querystring';
import zlib from 'zlib';
import contentType from 'content-type';

import type { $Request } from 'express';
import { type $Request } from 'express';

/**
* Provided a "Request" provided by express or connect (typically a node style
Expand Down

0 comments on commit 169e786

Please sign in to comment.