MCPcopy
hub / github.com/loopbackio/loopback-next / property

Function property

packages/repository/src/decorators/model.decorator.ts:125–131  ·  view source on GitHub ↗
(definition?: Partial<PropertyDefinition>)

Source from the content-addressed store, hash-verified

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

Callers 15

MyModelClass · 0.90
TestModelClass · 0.90
NoModelMetaClass · 0.90
CustomTypeClass · 0.90
AddressClass · 0.90
OrderClass · 0.90
CustomerClass · 0.90
CustomTypeFooClass · 0.90
ProductClass · 0.90
NewModelClass · 0.90
CategoryClass · 0.90

Calls 1

createDecoratorMethod · 0.45

Tested by

no test coverage detected