Skip to content

Commit

Permalink
fix(base_model): correct typing for findManyBy
Browse files Browse the repository at this point in the history
Closes #1014
  • Loading branch information
RomainLanz committed Mar 26, 2024
1 parent 196c97c commit c22f019
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/model.ts
Expand Up @@ -999,6 +999,7 @@ export interface LucidModel {
* Find multiple models instance using a key/value pair
*/
findManyBy<T extends LucidModel>(
this: T,
clause: Record<string, unknown>,
options?: ModelAdapterOptions
): Promise<InstanceType<T>[]>
Expand All @@ -1007,6 +1008,7 @@ export interface LucidModel {
* Find multiple models instance using a key/value pair
*/
findManyBy<T extends LucidModel>(
this: T,
key: string,
value: any,
options?: ModelAdapterOptions
Expand Down

0 comments on commit c22f019

Please sign in to comment.