Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
) * Install typescript@4.7.0-beta and fix one of the TS errors * Resolve remaining TS errors * Fix ambiguous typings * Revert TS version back to latest * Add changeset
- Loading branch information
1 parent
1179697
commit 0bbb176
Showing
20 changed files
with
184 additions
and
136 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,21 @@ | ||
--- | ||
'@graphql-tools/delegate': patch | ||
'@graphql-tools/links': patch | ||
'@graphql-tools/git-loader': patch | ||
'@graphql-tools/url-loader': patch | ||
'@graphql-tools/stitch': patch | ||
'@graphql-tools/utils': patch | ||
'@graphql-tools/wrap': patch | ||
--- | ||
|
||
Refine generic typings using `extends X` when appropriate | ||
|
||
Typescript 4.7 has stricter requirements around generics | ||
which is explained well in the related PR: | ||
https://github.com/microsoft/TypeScript/pull/48366 | ||
|
||
These changes resolve the errors that these packages will | ||
face when attempting to upgrade to TS 4.7 (still in beta | ||
at the time of writing this). Landing these changes now | ||
will allow other TS libraries which depend on these | ||
packages to experiment with TS 4.7 in the meantime. |
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { fetch } from 'cross-undici-fetch'; | ||
|
||
export type AsyncFetchFn = typeof fetch; | ||
export const defaultAsyncFetch: AsyncFetchFn = async (input: RequestInfo, init?: RequestInit): Promise<Response> => { | ||
export const defaultAsyncFetch: AsyncFetchFn = async (input, init) => { | ||
return fetch(input, init); | ||
}; |
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.