From a1d6b03ec98abbc073b5b73b631da6ea3eae4eb9 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 27 Mar 2024 15:20:14 +0100 Subject: [node] finished the great typescript rewrite --- nodejs/model/system.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nodejs/model/system.ts (limited to 'nodejs/model/system.ts') diff --git a/nodejs/model/system.ts b/nodejs/model/system.ts new file mode 100644 index 0000000..b90560f --- /dev/null +++ b/nodejs/model/system.ts @@ -0,0 +1,30 @@ +import { CommonThing } from 'common.ts'; + +export type Chart = { + waypointSymbol: string; + submittedBy: string; + submittedOn: Date; +}; + +export type System = { + symbol: string; + sectorSymbol: string; + type: string; + x: number; + y: number; + waypoints: Array; +}; + +export type Waypoint = { + chart: Chart; + factions: Array<{symbol: string;}>; + isUnderConstruction: boolean; + modifiers: Array; + orbitals: Array<{symbol: string;}>; + orbits: string; + symbol: string; + traits: Array; + type: string; + x: number; + y: number; +}; -- cgit v1.2.3