UNPKG

1 kBTypeScriptView Raw
1import DataTypes = require('./data-types');
2import Deferrable = require('./deferrable');
3import Op from './operators';
4import QueryTypes = require('./query-types');
5import TableHints = require('./table-hints');
6import IndexHints = require('./index-hints');
7import Utils = require('./utils');
8
9export * from './associations/index';
10export * from './data-types';
11export * from './errors/index';
12export { BaseError as Error } from './errors/index';
13export * from './model';
14export * from './dialects/abstract/query-interface';
15export * from './sequelize';
16export * from './transaction';
17export { useInflection } from './utils';
18export { Validator } from './utils/validator-extras';
19export { Utils, QueryTypes, Op, TableHints, IndexHints, DataTypes, Deferrable };
20
21/**
22 * Type helper for making certain fields of an object optional. This is helpful
23 * for creating the `CreationAttributes` from your `Attributes` for a Model.
24 */
25export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;