Replies: 1 comment
-
im waiting on these to be exported as well as the Serializable type. for the interim though im just doing the following to extract those types out of their respective function types import {
unstable_defineAction as defineAction,
unstable_defineLoader as defineLoader,
} from "@remix-run/node";
type Loader = Parameters<typeof defineLoader>[0];
type Action = Parameters<typeof defineAction>[0];
export type LoaderArgs = Parameters<Loader>[0];
export type ActionArgs = Parameters<Action>[0]; |
Beta Was this translation helpful? Give feedback.
0 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.
-
when I use
defineLoader
anddefineAction
, I want to useargs
types in other functions likehandleRequest
out ofloader
, but I can't find the type export.Beta Was this translation helpful? Give feedback.
All reactions