I'm trying the React Router tutorial in TypeScript. The code works but I find it hard to identify the parameters' type definitions, e.g.
export async function action({ request, params }) {
const formData = await request.formData();
const updates = Object.fromEntries(formData);
...
From debugging I can see the variable request
is a type of Request
, however I can't find such a type when trying to import.
A similar question regarding the params
parameter.
Can someone help a confused .NET C# dev here, please?