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
But achieving the same thing with an array .del(['id']), the type is different and actually is an array of arrays like this: DeferredKeySelection<MyType, "id", true, {}, false, {}, never>[][] https://github.com/knex/knex/blob/2.3.0/types/index.d.ts#L1157
I guess this is a mistake? 🤔
The text was updated successfully, but these errors were encountered:
Environment
Knex version: 2.3.0
If issue is about TypeScript definitions, tag @lorefnon.
Bug
I think there is an inconsistency in the
del
function typings:When returning a single field with
.del('id')
, the return type seems good: an array of results like thisPick<MyType, 'id'>[]
: https://github.com/knex/knex/blob/2.3.0/types/index.d.ts#L1146.But achieving the same thing with an array
.del(['id'])
, the type is different and actually is an array of arrays like this:DeferredKeySelection<MyType, "id", true, {}, false, {}, never>[][]
https://github.com/knex/knex/blob/2.3.0/types/index.d.ts#L1157
I guess this is a mistake? 🤔
The text was updated successfully, but these errors were encountered: