Skip to content

Commit

Permalink
Add SortOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisNickels committed Mar 8, 2024
1 parent ae99e94 commit 55cdd1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ServicePulse.Host/vue/src/resources/SortOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export type GroupValue = string | number | Date;

export default interface SortOptions {
description: string;
dir: string;
selector: (group: GroupValue) => GroupValue;
icon: string;
sort: (firstElement: GroupValue, secondElement: GroupValue) => number;
}

0 comments on commit 55cdd1a

Please sign in to comment.