Using as const
on an enum triggers typescript errors on unstable_defineLoader
#9614
Labels
as const
on an enum triggers typescript errors on unstable_defineLoader
#9614
Reproduction
https://stackblitz.com/edit/remix-run-remix-yjtvxa?file=app%2Froutes%2F_index.tsx
System Info
Used Package Manager
yarn
Expected Behavior
There should be no typescript errors. All types being sent are serializable.
Actual Behavior
There is a typescript error:
The text was updated successfully, but these errors were encountered: