nestjs-express-cassandra
Version:
Express-cassandra module for Nest framework
12 lines (11 loc) • 952 B
TypeScript
import { Type } from '@nestjs/common';
import { ColumnOptions, ColumnsType, FunctionType, ObjectType, TargetType } from '../interfaces/decorators.interface';
export declare function setEntityMetadata(target: TargetType, entity: FunctionType): void;
export declare function getEntityMetadata<T>(target: TargetType): Type<T>;
export declare function setEntityName(target: TargetType, name: string): void;
export declare function getEntityOptions<T>(target: TargetType): T | undefined;
export declare function setEntityOptions<T>(target: TargetType, options: T): void;
export declare function addEntityOptions<T>(target: TargetType, options: T): void;
export declare function getEntityColumns<T = ColumnsType>(target: ObjectType): T | undefined;
export declare function setEntityColumns<T = ColumnsType>(target: ObjectType, attrs: T): void;
export declare function addEntityColumn(target: ObjectType, name: string | symbol, options: ColumnOptions): void;