Replies: 1 comment 2 replies
-
I think you want the types import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router-dom";
loader: ({request, params, context}: LoaderFunctionArgs) => { ... } react-router/packages/router/utils.ts Lines 135 to 160 in 4475b56 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am using the loader function every where but having to explicity type the loader param is tedious. I am wondering if I am doing it wrong or theres a way to automatically enforce the type definition automatically?

thanks
Beta Was this translation helpful? Give feedback.
All reactions