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)
Error
Thoughts
Router.fetchshould satisfyglobalThis.fetch.