Documentation / @zerotal/client / index / RouteShape
Interface: RouteShape
Defined in: client/src/types.ts:36
Shape of a single route entry in the ApiRouteMap.
All fields are optional — omit any that don't apply to a given route.
Properties
params?
optionalparams?:Record<string,string|number>
Defined in: client/src/types.ts:38
URL path parameters, e.g. { id: string | number }
query?
optionalquery?:Record<string,string|number|boolean|undefined>
Defined in: client/src/types.ts:40
Query-string parameters
body?
optionalbody?:Record<string,unknown>
Defined in: client/src/types.ts:42
Request body for POST/PUT/PATCH
response?
optionalresponse?:unknown
Defined in: client/src/types.ts:44
The JSON response body type