Skip to content

Commit

Permalink
Include 'string' as accepted Knex constructor type definition (#3105)
Browse files Browse the repository at this point in the history
  • Loading branch information
enapupe authored and kibertoad committed Mar 12, 2019
1 parent 0aacab5 commit de1c934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/knex.d.ts
Expand Up @@ -62,7 +62,7 @@ interface Knex extends Knex.QueryInterface {
on(eventName: string, callback: Function): Knex.QueryBuilder;
}

declare function Knex(config: Knex.Config): Knex;
declare function Knex(config: Knex.Config | string): Knex;

declare namespace Knex {
//
Expand Down

0 comments on commit de1c934

Please sign in to comment.