@wpkernel/wp-json-ast v0.12.6-beta.3
@wpkernel/wp-json-ast / RestRouteRequestParameter
Interface: RestRouteRequestParameter
Extends
Omit<RequestParamAssignmentOptions,"requestVariable">
Properties
param
ts
readonly param: string;The name of the parameter to retrieve.
Inherited from
RequestParamAssignmentOptions.param
cast?
ts
readonly optional cast: ScalarCastKind;An optional scalar cast to apply to the parameter value.
Inherited from
RequestParamAssignmentOptions.cast
requestVariable?
ts
readonly optional requestVariable: string;targetVariable?
ts
readonly optional targetVariable: string;The name of the variable to which the parameter value will be assigned. Defaults to the value of param.
