Skip to content

postgrelize / ModelPropertyDecorator

Type Alias: ModelPropertyDecorator ​

ModelPropertyDecorator = {(value, context): void; (prototype, key): void; }

Defined in: src/decorators/decorator-types.ts:14

Decorator applied to an attribute (class field). Accepts the TC39 standard call (undefined, context) and the legacy experimentalDecorators call (prototype, key).

Call Signature ​

(value, context): void

Parameters ​

value ​

undefined

context ​

ClassFieldDecoratorContext

Returns ​

void

Call Signature ​

(prototype, key): void

Parameters ​

prototype ​

object

key ​

string | symbol

Returns ​

void

Released under the MIT License.