@decaf-ts/db-decorators
Version:
Agnostic database decorators and repository
9 lines (8 loc) • 464 B
TypeScript
/**
* @description Decorator that marks a property as an ID field
* @summary Creates a composite decorator that marks a property as required, readonly, and as the ID field for database operations
* @return {PropertyDecorator} A decorator that can be applied to class properties
* @function id
* @category Property Decorators
*/
export declare function id(): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;