Skip to content

Http2ServerRequest#setTimeout should return this #33993

Closed
@rexagod

Description

@rexagod

http2.Http2ServerRequest.setTimeout should return this instead of void/undefined

It's the last thing in the TypeScript typings to fix:

Argument of type 'Http2ServerRequest' is not assignable to parameter of type 'IncomingMessage'.
  The types returned by 'setTimeout(...)' are incompatible between these types.
    Type 'void' is not assignable to type 'IncomingMessage'.ts(2345)

See:

Originally posted by @clshortfuse in #29829 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions