Replies: 1 comment 1 reply
-
Where/how would you use that interface? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In the context of an Inertia app, the Ziggy object is passed through the props under
$props.ziggy
. I could determine it is of the same format as theConfig
interface, which is not exposed. I found a way to extract the interface like that:which is pretty messy for such a simple type.
It would also not make sense to copy the type in my own codebase directly.
Suggestion
It'd be convenient to simply export the interface from Ziggy,
export interface Config { ... }
Beta Was this translation helpful? Give feedback.
All reactions