Skip to content

Commit

Permalink
feat(common): add OneOrMore<> type
Browse files Browse the repository at this point in the history
  • Loading branch information
capt-nemo429 committed Dec 11, 2022
1 parent f24c726 commit 9fdfdc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/common/src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export type ErgoTree = string;
export type Base58String = string;
export type Amount = string | bigint;

export type OneOrMore<T> = T | T[];

export type SortingSelector<T> = (item: T) => string | number | bigint;
export type SortingDirection = "asc" | "desc";

Expand Down

0 comments on commit 9fdfdc6

Please sign in to comment.