graphql-tag icon indicating copy to clipboard operation
graphql-tag copied to clipboard

Typescript expecting no arguments

Open FredrikZeiner opened this issue 5 years ago • 2 comments
trafficstars

Use of the arguments keyword and having no parameters creates error in Typescript: Expected 0 arguments, but got 1.

This can be circumvented by defining function as type any: (gql as any), however this breaks syntax highlighting in vscode.

FredrikZeiner avatar Jul 13 '20 22:07 FredrikZeiner

@FredrikZeiner: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

apollo-cla avatar Jul 13 '20 22:07 apollo-cla

I suspect this change may break backwards compatibility?

FredrikZeiner avatar Jul 13 '20 22:07 FredrikZeiner