Skip to content

Commit

Permalink
Merge pull request #81 from molgenis/feat/sortByPath
Browse files Browse the repository at this point in the history
Fix sortorder type
  • Loading branch information
dennishendriksen authored Jun 2, 2022
2 parents 035f28a + cbaae97 commit 655ac7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@molgenis/vip-report-api",
"version": "3.4.0",
"version": "3.4.1",
"description": "TypeScript Report API for Variant Call Format (VCF) Report Templates",
"scripts": {
"build": "tsc --build",
Expand Down
4 changes: 3 additions & 1 deletion src/Api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ export interface Params {
size?: number;
}

export type SortPath = (string | number)[];

export interface SortOrder {
property: string | string[];
property: string | SortPath;
compare?: "asc" | "desc" | CompareFn;
}

Expand Down

0 comments on commit 655ac7e

Please sign in to comment.