From 46d778d1adf222b748f7f08843f3cd867d58c5ce Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Apr 2021 20:32:08 +0100 Subject: [PATCH] script: Introduce CompassAngle alias Signed-off-by: Ian Jackson --- templates/script.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index 40ab5a14..34754494 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -47,6 +47,7 @@ type WhatResponseToClientOp = "Predictable" | "Unpredictable" | "UpdateSvg"; type Timestamp = number; // unix time_t, will break in 285My type Layout = 'Portrait' | 'Landscape'; type PieceMoveable = "No" | "IfWresting" | "Yes"; +type CompassAngle = number; type UoDescription = { kind: UoKind; @@ -68,7 +69,7 @@ type PieceInfo = { cseq_updatesvg : number | null, z : ZCoord, zg : Generation, - angle: number, + angle: CompassAngle, pinned: boolean, moveable: PieceMoveable, uos : UoDescription[], -- 2.30.2