Files
DefinitelyTyped/types/knex
Matt R. Wilson 2cbd45cb2a [@types/knex] Update ChainableInterface. (#28716)
Fixes #28679.

As I [noted in a comment](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28679#issuecomment-419265731) on the original issue, the class-like objects [`Raw`](https://github.com/tgriesser/knex/blob/master/src/raw.js#L191-L193), [`QueryBuilder`](https://github.com/tgriesser/knex/blob/2183a278268dc7aedf5edeccecb99176b9827f27/src/query/builder.js#L1074), and [`SchemaBuilder`](https://github.com/tgriesser/knex/blob/232fe9f1517dba927f6a3a1fb1b8842d7c0a4007/src/schema/builder.js#L68) use a [utility file](https://github.com/tgriesser/knex/blob/master/src/interface.js) to extend a handful of methods onto them.
The contents of this file are represented in the `ChainableInterface` interface.

Changes made:
- Updated `SchemaBuilder` to extend `ChainableInterface`.
- Moved `debug`, `transacting`, and `connection` from `QueryInterface` to `ChainableInterface`.
- Removed `exec` from `ChainableInterface` as it was [removed 0.12.0](https://github.com/tgriesser/knex/blob/master/CHANGELOG.md#0120---13-sep-2016).
2018-09-10 14:41:16 -07:00
..