Skip to content

typescript error with latest @types/node for example, 20.19.2 #379

@jeremymeng

Description

@jeremymeng

Seems related to DefinitelyTyped/DefinitelyTyped@239534a#diff-57e7757e84d63cfecb505f51e2bceaa12ecc23024bf9eabeb37572f4c51930a6R1647

We are now seeing errors:

error    2416   Property 'getName' in type 'Agent' is not assignable to the same property in base type 'Agent'.
                                    Type '(options: AgentConnectOpts) => string' is not assignable to type '(options?: AgentGetNameOptions) => string'.
                                      Types of parameters 'options' and 'options' are incompatible.
                                        Type 'AgentGetNameOptions' is not assignable to type 'AgentConnectOpts'.
                                          Property 'secureEndpoint' is missing in type 'AgentGetNameOptions' but required in type 'HttpConnectOpts'. (lsp)

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