Skip to content

Commit

Permalink
Add missing types to TransactionListItem (#32)
Browse files Browse the repository at this point in the history
* fix: Add transaction type

* chore: Add further missing types

* fix: Bump version
  • Loading branch information
iamacook authored Nov 19, 2021
1 parent 13f272e commit d64a17a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,22 @@ export type TransactionSummary = {
export type Transaction = {
transaction: TransactionSummary
conflictType: 'None' | 'HasNext' | 'End'
type: 'TRANSACTION'
}

export type DateLabel = {
timestamp: number
type: 'DATE_LABEL'
}

export type Label = {
label: string
type: 'LABEL'
}

export type ConflictHeader = {
nonce: number
type: 'CONFLICT_HEADER'
}

export type TransactionListItem = Transaction | Label | ConflictHeader
Expand Down

0 comments on commit d64a17a

Please sign in to comment.