Changed export to make Knex interface available without

creating an instance. Allows to define migrations in Typescript
This commit is contained in:
Norbert Wagner
2015-06-09 17:21:31 +02:00
parent 31ce460184
commit efaab812e1
+3 -2
View File
@@ -41,6 +41,8 @@ declare module "knex" {
fn: any;
}
function Knex( config : Config ) : Knex;
//
// QueryInterface
//
@@ -452,6 +454,5 @@ declare module "knex" {
tableName?: string;
}
var _: KnexStatic;
export = _;
export = Knex;
}