MCP Tools with Dependent Typesvlaaad.github.io 4 pointsvlaaad1 year ago2 commentsSaveHideCopy link On HNComments−VivaTechnics1yGood work! `type<T>` (generic types) can mimic dependent types for this?−vlaaadOP1yNot sure; the schema of the Props argument depends on the value — not type — of another argument, so it's not just generics.
Comments
Good work! `type<T>` (generic types) can mimic dependent types for this?
Not sure; the schema of the Props argument depends on the value — not type — of another argument, so it's not just generics.