forked from external-repos/LifeTrinket
add type
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user