Skip to content
Discussion options

You must be logged in to vote

I don't sure what is your usecase is
but i assume you mean by this

// 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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Scooter1337
Comment options

@a1um1
Comment options

Answer selected by Scooter1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants