Skip to content

error TS2430: Interface 'ExecutionResult<TData>' incorrectly extends interface 'ExecutionResult<ObjMap<unknown>, ObjMap<unknown>>'. #1226

@KeithGillette

Description

@KeithGillette

Bug report

Describe the bug

Running tsc from [email protected] with default skipLibCheck: false on a project importing @graphql/[email protected] and [email protected] generates the following error:

node_modules/@accounts/graphql-api/node_modules/@graphql-tools/utils/Interfaces.d.ts:3:18 - error TS2430: Interface 'ExecutionResult<TData>' incorrectly extends interface 'ExecutionResult<ObjMap<unknown>, ObjMap<unknown>>'.
  Types of property 'data' are incompatible.
    Type 'TData' is not assignable to type 'ObjMap<unknown>'.

3 export interface ExecutionResult<TData = Record<string, any>> extends GraphQLExecutionResult {

To Reproduce

See bug description.

Expected behavior

The project should transpile without error with TypeScript's default skipLibCheck: false setting.

Screenshots

N/A

System information

  • accounts-js: 0.33.2
  • graphql: 16.5.0
  • typescript: 4.7.4

Additional context

The version of graphql in @accounts/graphql-api dependencies is 2 major versions behind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions