diff options
author | Julien Dessaux | 2024-03-27 15:20:14 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-03-27 15:21:37 +0100 |
commit | a1d6b03ec98abbc073b5b73b631da6ea3eae4eb9 (patch) | |
tree | 1566c60bf1155e62821d9561ba1cc998b04b8ea5 /nodejs/model/market.ts | |
parent | [all] fixed erroneous contracts index (diff) | |
download | spacetraders-a1d6b03ec98abbc073b5b73b631da6ea3eae4eb9.tar.gz spacetraders-a1d6b03ec98abbc073b5b73b631da6ea3eae4eb9.tar.bz2 spacetraders-a1d6b03ec98abbc073b5b73b631da6ea3eae4eb9.zip |
[node] finished the great typescript rewrite
Diffstat (limited to '')
-rw-r--r-- | nodejs/model/market.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nodejs/model/market.ts b/nodejs/model/market.ts new file mode 100644 index 0000000..1ba70c1 --- /dev/null +++ b/nodejs/model/market.ts @@ -0,0 +1,19 @@ +import { CommonThing } from 'common.ts'; + +export type TradeGood = CommonThing & { + activity: string; + purchasePrice: number; + sellPrice: number; + supply: string; + tradeVolume: number; + type: string; +}; + +export type Market = { + symbol: string; + exchange: Array<CommonThing>; + exports: Array<CommonThing>; + imports: Array<CommonThing>; + //transactions: Array<Transaction>; + tradeGoods: Array<TradeGood>; +}; |