Skip to content

Commit

Permalink
Add GenericListOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Feb 20, 2024
1 parent 04781d5 commit 9e89372
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 66 deletions.
7 changes: 6 additions & 1 deletion generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ export interface GenericList<T> {
items: Array<T>
}

export enum GenericListOrder {
ASC = 'asc',
DESC = 'desc'
}

export type GenericListInput = {
limit?: number;
page?: number;
order?: string;
order?: GenericListOrder;
sort?: string;
where?: SQL<unknown>;
}
Expand Down
143 changes: 78 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e89372

Please sign in to comment.