UNPKG

613 BTypeScriptView Raw
1import { IndexOptions, IndexFieldOptions } from './index-service';
2declare type IndexDecoratorOptions = IndexOptions & Pick<IndexFieldOptions, Exclude<keyof IndexFieldOptions, 'name'>>;
3export declare function Index(name: string): Function;
4export declare function Index(options: IndexDecoratorOptions): Function;
5export declare function Index(target: any, propertyName: string, propertyDescriptor?: PropertyDescriptor): void;
6export declare function annotateModelWithIndex(target: any, propertyName: string, optionsOrName?: IndexDecoratorOptions | string, indexId?: string | number): string | number;
7export {};