Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Dec 12, 2023
1 parent 1370c68 commit c5a8312
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1007,12 +1007,10 @@ export function useMatches(): UIMatch[] {
type InferDataType<T = AppData> = (
T extends (...args: any[]) => unknown
? ReturnType<T> extends Promise<Response>
? Parameters<T> extends [ClientLoaderFunctionArgs]
? SerializeFrom<T>
: Parameters<T> extends [ClientActionFunctionArgs]
? SerializeFrom<T>
: Awaited<ReturnType<T>>
: SerializeFrom<T>
? SerializeFrom<T>
: Parameters<T> extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs]
? Awaited<ReturnType<T>>
: SerializeFrom<T>
: SerializeFrom<T>
);

Expand Down

0 comments on commit c5a8312

Please sign in to comment.