You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
interface SomeCallable {
(cb: Function): Promise<any>;
}
interface Builder {
then: SomeCallable;
}
async function testme(knex: Builder) {
await knex; // Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member
}
Expected behavior
Knex typings were changed in 0.20.0 so they don't inherit from Promise anymore, but there are still .then/.catch methods and should not warn (initially reported this in knex/knex#3516)
morigs, danielschleindlsperger, ilanl and npalrecha