1
0
Fork 0

[node] begin the great typescript rewrite

This commit is contained in:
Julien Dessaux 2024-03-21 17:08:37 +01:00
parent 3b61a9694d
commit d668eac4a6
Signed by: adyxax
GPG key ID: F92E51B86E07177E
31 changed files with 879 additions and 666 deletions

17
nodejs/model/cargo.ts Normal file
View file

@ -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;
};