Skip to content

Commit

Permalink
Revert "Add DocumentNode to gql declaration (#196)" (#218)
Browse files Browse the repository at this point in the history
This reverts commit ae792b6. Based on #196 and #150, introducing the `DocumentNode` return value causes this library to break for existing TypeScript installations. I'm reverting this temporarily so we can release support for GraphQL v14 in a minor patch, and if we can't fix the TypeScript configuration, we'll release a major version with this commit back in.
  • Loading branch information
jnwng committed Oct 2, 2018
1 parent ae792b6 commit c5a32a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.d.ts
@@ -1,5 +1,3 @@
import { DocumentNode } from 'graphql';

export default function gql(literals: any, ...placeholders: any[]): DocumentNode;
export default function gql(literals: any, ...placeholders: any[]): any;
export function resetCaches(): void;
export function disableFragmentWarnings(): void;

0 comments on commit c5a32a6

Please sign in to comment.