summaryrefslogtreecommitdiff
path: root/nodejs/model/cargo.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nodejs/model/cargo.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/nodejs/model/cargo.ts b/nodejs/model/cargo.ts
new file mode 100644
index 0000000..869fa49
--- /dev/null
+++ b/nodejs/model/cargo.ts
@@ -0,0 +1,17 @@
+export type Inventory = {
+ description: string;
+ name: string;
+ symbol: string;
+ units: number;
+};
+
+export type Cargo = {
+ "capacity": number;
+ "units": number;
+ "inventory": Array<Inventory>;
+};
+
+// Custom type, not from space traders api
+export type CargoManifest = {
+ [key: string]: number;
+};