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

Typescript expecting no arguments #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FredrikZeiner
Copy link

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.

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 gql as any type: (gql as any)``, but then syntax highlighting doesn't work.
@apollo-cla
Copy link

@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/

@FredrikZeiner
Copy link
Author

FredrikZeiner commented Jul 13, 2020

I suspect this change may break backwards compatibility?

@FredrikZeiner FredrikZeiner changed the title Update index.js Typescript expecting no arguments Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants