Skip to content

Commit 4158838

Browse files
authored
Merge pull request #214 from shlomiassaf/export-custom-driver-kit
export Driver related types to allow user defined custom drivers
2 parents 6b5a649 + b7b85a8 commit 4158838

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)