[node] begin the great typescript rewrite
This commit is contained in:
parent
3b61a9694d
commit
d668eac4a6
31 changed files with 879 additions and 666 deletions
17
nodejs/model/cargo.ts
Normal file
17
nodejs/model/cargo.ts
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue