summaryrefslogtreecommitdiff
path: root/nodejs/model/cargo.ts
blob: 869fa49635b3b4afefd144439fb7729290a0062c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
};