Skip to content

Commit

Permalink
chore: export { hookNames } (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjake authored Dec 8, 2023
1 parent 98b2016 commit 2fea0f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -68,6 +69,7 @@ Object.assign(Realm, {
Raw,
LENGTH_VARIANTS,
isBone,
hookNames,
});

module.exports = Realm;

0 comments on commit 2fea0f7

Please sign in to comment.