@sequelize/core
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, Oracle, and IBM i. It features solid transaction support, relations, eager and lazy loading, read repli
12 lines (11 loc) • 471 B
TypeScript
import type { ModelStatic } from './model.js';
type ModelMatch = (path: string, exportName: string, exportValue: ModelStatic) => boolean;
/**
* Imports all model classes exported in the file matching the specified globs.
* Useful when setting the "models" option in the Sequelize constructor.
*
* @param globPaths
* @param modelMatch
*/
export declare function importModels(globPaths: string | string[], modelMatch?: ModelMatch): Promise<ModelStatic[]>;
export {};