Skip to content

Commit d64a17a

Browse files
authored
Add missing types to TransactionListItem (#32)
* fix: Add transaction type * chore: Add further missing types * fix: Bump version
1 parent 13f272e commit d64a17a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types/transactions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,22 @@ export type TransactionSummary = {
206206
export type Transaction = {
207207
transaction: TransactionSummary
208208
conflictType: 'None' | 'HasNext' | 'End'
209+
type: 'TRANSACTION'
209210
}
210211

211212
export type DateLabel = {
212213
timestamp: number
214+
type: 'DATE_LABEL'
213215
}
214216

215217
export type Label = {
216218
label: string
219+
type: 'LABEL'
217220
}
218221

219222
export type ConflictHeader = {
220223
nonce: number
224+
type: 'CONFLICT_HEADER'
221225
}
222226

223227
export type TransactionListItem = Transaction | Label | ConflictHeader

0 commit comments

Comments
 (0)