Here is the JavaScript code I currently have:
let sig = request.headers["stripe-signature"];
try {
let event = stripe.webhooks.constructEvent(request.rawBody, sig, endpointSecret);
} catch (err) {
return response.status(400).end();
}
I am looking to convert this code into TypeScript to resolve an error message:
Cannot find name 'request'. Did you mean 'Request'?ts(2552)