Is there a way to easily get the parameters of an eden call with a path parameter? #1462
Answered
by
a1um1
Scooter1337
asked this question in
Q&A
-
|
It's pretty easy when there is no path parameter involved, but if there is, it becomes really hard. |
Beta Was this translation helpful? Give feedback.
Answered by
a1um1
Oct 9, 2025
Replies: 1 comment 2 replies
-
|
I don't sure what is your usecase is // Path : api/inventory/product/:type/
type baseCall = ReturnType<typeof eden.api.inventory.product>
type callParam = Parameters<baseCall['get']>[0]If this is your answer you can go crazy on typescript to make it's automatic do this for you |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Scooter1337
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't sure what is your usecase is
but i assume you mean by this
If this is your answer you can go crazy on typescript to make it's automatic do this for you