Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
Simplify GraphQLFlatType
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Dec 3, 2019
1 parent c507980 commit cc633a0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import {
DocumentNode,
FragmentDefinitionNode,
SelectionNode,
GraphQLScalarType,
GraphQLObjectType,
GraphQLInterfaceType,
GraphQLUnionType,
GraphQLEnumType,
GraphQLOutputType,
GraphQLWrappingType,
} from 'graphql';

// Helper types
Expand All @@ -18,12 +15,7 @@ export interface Ref<T> {

// GraphQL helper types
export type SelectionSet = ReadonlyArray<SelectionNode>;
export type GraphQLFlatType =
| GraphQLScalarType
| GraphQLObjectType
| GraphQLInterfaceType
| GraphQLUnionType
| GraphQLEnumType;
export type GraphQLFlatType = Exclude<GraphQLOutputType, GraphQLWrappingType>;
export interface Fragments {
[fragmentName: string]: void | FragmentDefinitionNode;
}
Expand Down

0 comments on commit cc633a0

Please sign in to comment.