UNPKG

755 BTypeScriptView Raw
1import { ModelAttributeColumnOptions } from 'sequelize';
2/**
3 * Returns model attributes from class by restoring this
4 * information from reflect metadata
5 */
6export declare function getAttributes(target: any): any | undefined;
7/**
8 * Sets attributes
9 */
10export declare function setAttributes(target: any, attributes: any): void;
11/**
12 * Adds model attribute by specified property name and
13 * sequelize attribute options and stores this information
14 * through reflect metadata
15 */
16export declare function addAttribute(target: any, name: string, options: any): void;
17/**
18 * Adds attribute options for specific attribute
19 */
20export declare function addAttributeOptions(target: any, propertyName: string, options: Partial<ModelAttributeColumnOptions>): void;