Skip to content

Commit

Permalink
return plugin setup value
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Jun 20, 2021
1 parent 2b0310d commit 5712b84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface IDbStatus {
}

export interface IPlugin {
setup: (connection, params) => any | void;
setup: (connection, params) => any;
}

export interface IDbInfo {
Expand Down
2 changes: 1 addition & 1 deletion src/main/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export class Connection extends ConnectionHelper {
}

addPlugin(plugin: IPlugin, params?) {
plugin.setup(this, params);
return plugin.setup(this, params);
}

addMiddleware(middleware: TMiddleware | string, forWorker: boolean) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './connection';
export { DATA_TYPE, IDataBase, ITable } from '../common';
export { DATA_TYPE, IDataBase, ITable, InsertQuery, SelectQuery, UpdateQuery } from '../common';

0 comments on commit 5712b84

Please sign in to comment.