diff --git a/src/index.d.ts b/src/index.d.ts index 34770a7b..bf46e5af 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -15,6 +15,7 @@ export * from './adapters/sequelize'; export * from './hint'; export * from './types/common'; export * from './spell'; +export { hookNames } from './setup_hooks'; interface InitOptions { underscored?: boolean; diff --git a/src/index.js b/src/index.js index cb13f6f6..11b2fe86 100644 --- a/src/index.js +++ b/src/index.js @@ -15,6 +15,7 @@ const Decorators = require('./decorators'); const Raw = require('./raw').default; const { MysqlDriver, PostgresDriver, SqliteDriver, SqljsDriver, AbstractDriver } = require('./drivers'); const { isBone } = require('./utils'); +const { hookNames } = require('./setup_hooks'); /** * @typedef {Object} RawSql @@ -68,6 +69,7 @@ Object.assign(Realm, { Raw, LENGTH_VARIANTS, isBone, + hookNames, }); module.exports = Realm;