Skip to content

Typescript 4.7 support #4381

@trevor-scheer

Description

@trevor-scheer

Typescript 4.7 is still in beta but we'd like to start experimenting with it. graphql-tools currently doesn't build with the 4.7.0-beta version of typescript. There are presumably fixes that can be made now which will be forward compatible without actually updating the TS version here.

This PR looks like the cause of the majority of the issues when trying to build this repo using:
microsoft/TypeScript#48366

If we understand correctly, it seems like generics that don't have an extends <object type> which are passed into a function that have a generic which extends said object type is the root of the typescript errors that are popping up.

I'll open a PR with the failures and one of the fixes that I assume to be correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions