-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow customisation for extensions type (#6969)
* Allow customization for extensions type This introduces a new configuration for the `graphql-request` plugin for typescript. It allows to use `unknown` (or a custom type) instead of `any` for the `extensions` parameter without breaking changes. * Add changeset * Add tests for extensionsType config
- Loading branch information
1 parent
2c4081f
commit 3b87f04
Showing
5 changed files
with
652 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-codegen/typescript-graphql-request': minor | ||
--- | ||
|
||
Add the extensionsType config in order to change the default type for extensions when rawRequest is true. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.