jin-frame / decorators/fields/ObjectBody / ObjectBody
Function: ObjectBody()
ObjectBody(
_option?
): (target
,propertyKey
) =>void
Defined in: src/decorators/fields/ObjectBody.ts:10
decorator to set class variable to HTTP API body parameter
Parameters
_option?
Partial
<Omit
<IObjectBodyFieldOption
, "type"
>>
Returns
(
target
,propertyKey
):void
Parameters
target
object
propertyKey
string
| symbol
Returns
void