postgrelize / ModelStaticMethodDecorator
Type Alias: ModelStaticMethodDecorator ​
ModelStaticMethodDecorator = {(
value,context):void; (constructor,key,descriptor?):void; }
Defined in: src/decorators/decorator-types.ts:23
Decorator applied to a static method (hooks). Accepts the TC39 standard call (method, context) and the legacy experimentalDecorators call (constructor, key, descriptor).
Call Signature ​
(
value,context):void
Parameters ​
value ​
(...args) => unknown
context ​
ClassMethodDecoratorContext
Returns ​
void
Call Signature ​
(
constructor,key,descriptor?):void
Parameters ​
constructor ​
object
key ​
string | symbol
descriptor? ​
PropertyDescriptor
Returns ​
void