Skip to content

Router.fetch does not match globalThis.fetch #10

@EthanThatOneKid

Description

@EthanThatOneKid

Error

Type '(request: Request, info?: ServeHandlerInfo<Addr> | undefined, state?: never) => Promise<Response>' is not assignable to type '{ (input: RequestInfo | URL, init?: RequestInit | undefined): Promise<Response>; (input: RequestInfo | URL, init?: (RequestInit & { ...; }) | undefined): Promise<...>; }'.
  Types of parameters 'request' and 'input' are incompatible.
    Type 'RequestInfo | URL' is not assignable to type 'Request'.
      Type 'string' is not assignable to type 'Request'.deno-ts(2322)

Thoughts

Router.fetch should satisfy globalThis.fetch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions