Skip to content

jin-frame / decorators/fields/Body / Body

Function: Body()

Body(_option?): (target, propertyKey) => void

Defined in: src/decorators/fields/Body.ts:10

decorator to set class variable to HTTP API body parameter

Parameters

_option?

Partial<Omit<IBodyFieldOption, "type">>

Returns

(target, propertyKey): void

Parameters

target

object

propertyKey

string | symbol

Returns

void