Skip to content

added typesPrefix config #45

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

Merged
merged 2 commits into from
Apr 18, 2022
Merged

added typesPrefix config #45

merged 2 commits into from
Apr 18, 2022

Conversation

Code-Hex
Copy link
Owner

add typesPrefix document and tests

@Code-Hex Code-Hex merged commit 2b28782 into main Apr 18, 2022
@Code-Hex Code-Hex deleted the add/typesPrefix-config branch April 18, 2022 16:14
Copy link

@eyeruleall eyeruleall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the test will pass, but the import statement will be wrong because /graphql.ts won't have the prefixes. The typesPrefix option should also be on the -typescript plugin, since it's generating the types.

Another option that would help avoid breaking changes could be to add mappers, like the -typescript plugin has.

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.

2 participants