diff --git a/adonis-typings/database.ts b/adonis-typings/database.ts index 583e641f..5d24bf4d 100644 --- a/adonis-typings/database.ts +++ b/adonis-typings/database.ts @@ -80,7 +80,7 @@ declare module '@ioc:Adonis/Lucid/Database' { */ query< Record extends any = any, - Result extends any = any, + Result extends any = Record, > (): DatabaseQueryBuilderContract & ExcutableQueryBuilderContract, /** @@ -88,8 +88,9 @@ declare module '@ioc:Adonis/Lucid/Database' { */ insertQuery< Record extends any = any, - ReturnColumns extends any = any[] - > (): InsertQueryBuilderContract & ExcutableQueryBuilderContract, + ReturnColumns extends any = Record + > ( + ): InsertQueryBuilderContract & ExcutableQueryBuilderContract, /** * Get raw query builder instance @@ -553,7 +554,7 @@ declare module '@ioc:Adonis/Lucid/Database' { */ query< Record extends any = any, - Result extends any = any, + Result extends any = Record, > ( options?: DatabaseClientOptions, ): DatabaseQueryBuilderContract & ExcutableQueryBuilderContract, @@ -563,7 +564,7 @@ declare module '@ioc:Adonis/Lucid/Database' { */ insertQuery< Record extends any = any, - ReturnColumns extends any = any + ReturnColumns extends any = Record > ( options?: DatabaseClientOptions, ): InsertQueryBuilderContract & ExcutableQueryBuilderContract,