diff --git a/types/index.d.ts b/types/index.d.ts index 835355276a..69dc3c8df4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1864,7 +1864,7 @@ export declare namespace Knex { } > >( - columnName: Readonly, + columnName: TKey, options: Readonly ): QueryBuilder; < diff --git a/types/test.ts b/types/test.ts index 5a25ce76f6..b7347fa18f 100644 --- a/types/test.ts +++ b/types/test.ts @@ -1197,7 +1197,7 @@ const main = async () => { // $ExpectType Dict await knexInstance.first().min('age').from('users'); - // $ExpectType ({ a: string | Date; } & { b: string | Date; })[] + // $ExpectType ({ a: Date; } & { b: Date; })[] await knexInstance('tickets') .min('at', {as: 'a'}) .max('at', {as: 'b'});