1
0
Fork 0
spacetraders/nodejs/model/cargo.ts

17 lines
297 B
TypeScript

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