Skip to content

Commit b7b85a8

Browse files
author
Shlomi Assaf (shlassaf)
committed
export Driver related types to allow user defined custom drivers
Closes #212
1 parent 6b5a649 commit b7b85a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export * from "./RoleChecker";
8888
export * from "./Action";
8989
export * from "./InterceptorInterface";
9090

91+
export * from "./driver/Driver";
92+
export * from "./driver/BaseDriver";
93+
export * from "./driver/express/ExpressDriver";
94+
export * from "./driver/koa/KoaDriver";
95+
9196
// -------------------------------------------------------------------------
9297
// Main Functions
9398
// -------------------------------------------------------------------------
@@ -140,7 +145,7 @@ export function createKoaServer(options?: RoutingControllersOptions): any {
140145
/**
141146
* Registers all loaded actions in your express application.
142147
*/
143-
function createExecutor(driver: Driver, options: RoutingControllersOptions): void {
148+
export function createExecutor(driver: Driver, options: RoutingControllersOptions): void {
144149

145150
// import all controllers and middlewares and error handlers (new way)
146151
let controllerClasses: Function[];

0 commit comments

Comments
 (0)