mongo-ts-struct
Version:
Mongoose wrapper for Typescript supports
10 lines (9 loc) • 455 B
TypeScript
/**
* @description
* class method, decorated with '@Static', will be handled as a static model method,
* 'this' key word will refer to the Model itself, not a specific document.
* @warn
* using 'this' at compilation time is not reflect the context of the method at run-time.
*/
declare function Static(): (targetPrototype: Object, propertyName: string, propertyDesciptor: PropertyDescriptor) => PropertyDescriptor;
export { Static };