UNPKG

sequelize-typescript

Version:

Decorators and some other extras for sequelize (v3 + v4)

19 lines (18 loc) 576 B
/// <reference types="sequelize" /> import { ReturningOptions } from 'sequelize'; import { IIncludeOptions } from "./IIncludeOptions"; import { Model } from "../models/Model"; export interface IBuildOptions extends ReturningOptions { /** * If set to true, values will ignore field and virtual setters. */ raw?: boolean; /** * Is this record new */ isNewRecord?: boolean; /** * an array of include options - Used to build prefetched/included model instances. See `set` */ include?: Array<typeof Model | IIncludeOptions>; }