Skip to main content
zerotal

Documentation


Documentation / @zerotal/client / index / QueryOf

Type Alias: QueryOf<Routes, Method, Path>

QueryOf<Routes, Method, Path> = `${Method} ${Path}` extends keyof Routes ? Routes[`${Method} ${Path}`] extends object ? Q : Record<string, string | number | boolean | undefined> : Record<string, string | number | boolean | undefined>

Defined in: client/src/types.ts:104

Get the query type for a specific method + path combination.

Type Parameters

Routes

Routes extends ApiRouteMap

Method

Method extends HttpMethod

Path

Path extends string