sequelize-typescript
Version:
Decorators and some other features for sequelize
8 lines (7 loc) • 378 B
TypeScript
import { IndexOptions, IndexFieldOptions } from './index-service';
interface IndexDecorator {
(fieldOptions: Pick<IndexFieldOptions, Exclude<keyof IndexFieldOptions, 'name'>>): Function;
(target: any, propertyName: string, propertyDescriptor?: PropertyDescriptor): void;
}
export declare function createIndexDecorator(options?: IndexOptions): IndexDecorator;
export {};