From 77e8a79a3582d9a03773af9b10b77b50b5cf4d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20R=C3=A5dberg?= Date: Sun, 24 Dec 2023 14:44:13 +0100 Subject: [PATCH] add type --- src/Types/Settings.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Types/Settings.ts b/src/Types/Settings.ts index fc25499..b56a351 100644 --- a/src/Types/Settings.ts +++ b/src/Types/Settings.ts @@ -1,5 +1,7 @@ import { GridTemplateAreas } from '../Data/GridTemplateAreas'; +type Orientation = 'side' | 'landscape' | 'portrait'; + export type Settings = { keepAwake: boolean; showStartingPlayer: boolean; @@ -9,9 +11,10 @@ export type Settings = { export type InitialGameSettings = { startingLifeTotal: number; useCommanderDamage: boolean; - gameFormat: GameFormat; + gameFormat?: GameFormat; numberOfPlayers: number; gridAreas: GridTemplateAreas; + orientation?: Orientation; }; type GameFormat = 'commander' | 'standard' | 'two-headed-giant';