Types
EndpointType
Report incorrect code
Copy
Ask AI
type EndpointType = keyof EndpointTypeMap | (string & {})
InputType
Report incorrect code
Copy
Ask AI
type InputType = T extends keyof EndpointTypeMap
? EndpointTypeMap[T]["input"]
: Record<string, any>
OutputType
Report incorrect code
Copy
Ask AI
type OutputType = T extends keyof EndpointTypeMap
? EndpointTypeMap[T]["output"]
: any