Skip to content

Commit

Permalink
Merge pull request #27122 from Expensify/hayata-add-routes-property-o…
Browse files Browse the repository at this point in the history
…n-transaction

[NO QA] Add new property to Transaction Typescript definiton
  • Loading branch information
youssef-lr authored Sep 11, 2023
2 parents a325f58 + 189c281 commit 67df8e9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/types/onyx/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ type Comment = {
comment?: string;
};

type Geometry = {
coordinates: number[][];
type: 'LineString';
};

type Route = {
distance: number;
geometry: Geometry;
};

type Routes = Record<string, Route>;

type Transaction = {
transactionID: string;
amount: number;
Expand All @@ -25,6 +37,7 @@ type Transaction = {
source?: string;
state?: ValueOf<typeof CONST.IOU.RECEIPT_STATE>;
};
routes?: Routes;
};

export default Transaction;

0 comments on commit 67df8e9

Please sign in to comment.