Skip to content

Instantly share code, notes, and snippets.

@srolel
Created May 10, 2017 16:25
Show Gist options
  • Save srolel/9fbba48e43b53d3f0a203c40c1fde02e to your computer and use it in GitHub Desktop.
Save srolel/9fbba48e43b53d3f0a203c40c1fde02e to your computer and use it in GitHub Desktop.
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