(definition?: Partial<PropertyDefinition>)
| 123 | * @returns A property decorator |
| 124 | */ |
| 125 | export function property(definition?: Partial<PropertyDefinition>) { |
| 126 | return PropertyDecoratorFactory.createDecorator( |
| 127 | MODEL_PROPERTIES_KEY, |
| 128 | Object.assign({}, definition), |
| 129 | {decoratorName: '@property'}, |
| 130 | ); |
| 131 | } |
| 132 | |
| 133 | export namespace property { |
| 134 | export const ERR_PROP_NOT_ARRAY = |
no test coverage detected