Skip to content

Commit

Permalink
types: add query builder method type
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddyuchina committed Sep 12, 2024
1 parent 757fd85 commit 27c302b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -579,7 +579,9 @@ declare module 'sutando' {
get<T = M>(columns?: string[]): Promise<T[]>;
first<T = M>(columns?: string[]): Promise<T | null | undefined>;
find<T = M>(key: string | number, columns?: string[]): Promise<T>;
update(attributes: any): Promise<M>;
insert(attributes: any): Promise<unknown>;
update(attributes: any): Promise<unknown>;
delete(): Promise<number>;
exists(): Promise<boolean>;
count(column?: string): Promise<number>;
min(column: string): Promise<number>;

0 comments on commit 27c302b

Please sign in to comment.