dotansimha / dotansimha/graphql-code-generator-community
Support custom extensions type in `graphql-request`
Open
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
It would be nice to use a custom `extensions` type in `graphql-request` plugin when the `rawRequest` config is enabled.
**Describe the solution you'd like**
A configuration parameter to change the default `any` type to something else.
**Additional context**
To date, `extensions` is hardcoded as `any`, which is the worst possible type for good static typing. `unknown` would be a great replacement, but changing this is a breaking change. Adding a custom configuration in order to let the user decide is probably a good compromise.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.