I have the following function that I cannot get to recognize the request when using the withCookies and withContent middleware.
I tried using import { Request as IttyRequest} from 'itty-router' but I get Property 'content' does not exist on type 'Request'
export async function handleRefresh(req: any): Promise<Response> {
const payload: RefreshTokenData = req.content ?? {};
}
Can someone tell me how I can get the right type?
I have the following function that I cannot get to recognize the request when using the withCookies and withContent middleware.
I tried using
import { Request as IttyRequest} from 'itty-router'but I getProperty 'content' does not exist on type 'Request'Can someone tell me how I can get the right type?