Created
May 10, 2017 16:25
-
-
Save srolel/9fbba48e43b53d3f0a203c40c1fde02e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Knex from 'knex'; | |
declare module "knex" { | |
export const raw: (x: any) => void; | |
} | |
const knex = Knex({}); | |
knex.raw("blah"); // from instance. defined in @types/knex | |
Knex.raw("blah"); // from 'constructor'. missing. What I am trying to augment | |
const wat = Knex; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment