Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/fix the existing TS declaration file #285

Merged
merged 2 commits into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Change log

### vNext

* Update/fix the existing TS `index.d.ts` declaration file. <br/>
[@hwillson](https://github.com/hwillson) in [#285](https://github.com/apollographql/graphql-tag/pull/285)

### v2.10.1

* Fix failures in IE11 by avoiding unsupported (by IE11) constructor arguments to `Set` by [rocwang](https://github.com/rocwang) in [#190](https://github.com/apollographql/graphql-tag/pull/190)

### v2.10.0
* Add support for `graphql@14` by [timsuchanek](https://github.com/timsuchanek) in [#210](https://github.com/apollographql/graphql-tag/pull/210), [#211](https://github.com/apollographql/graphql-tag/pull/211)

### v2.9.1
### v2.9.1
* Fix IE11 support by using a regular for-loop by [vitorbal](https://github.com/vitorbal) in [#176](https://github.com/apollographql/graphql-tag/pull/176)

### v2.9.0
Expand Down
23 changes: 20 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
export default function gql(literals: any, ...placeholders: any[]): any;
export function resetCaches(): void;
export function disableFragmentWarnings(): void;
declare module "graphql-tag" {
function gql(
literals: ReadonlyArray<string>,
...placeholders: any[]
): import("graphql").DocumentNode

namespace gql {
function resetCaches(): void;
function disableFragmentWarnings(): void;
function enableExperimentalFragmentVariables(): void;
function disableExperimentalFragmentVariables(): void;
}

export default gql;

export function resetCaches(): void;
export function disableFragmentWarnings(): void;
export function enableExperimentalFragmentVariables(): void;
export function disableExperimentalFragmentVariables(): void;
}