Skip to content

Commit

Permalink
hive tx op types fast (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geo25rey authored Apr 7, 2024
1 parent 39ee61d commit aaf528a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/new/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ export type HiveTransactionDbRecord = {
operations: AnyOperation[]
}

export type AnyOperation = IndexedKeysToTuple<ListOfOperations> & ListOfOperations
export type AnyOperation = IndexedKeysToTuple<ListOfOperations>

type IndexedKeysToTuple<T extends {0: any; 1: any}> = [T[0], T[1]]
type IndexedKeysToTuple<T extends {0: any; 1: any}> = T extends {0: infer A; 1: infer B} ? [A, B] : never

type ListOfOperations =
| AccountCreateOperation
Expand Down

0 comments on commit aaf528a

Please sign in to comment.