From 54ffc0a0f4fd21a403c2263e3c1a32ac9718176a Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Tue, 28 Jun 2022 00:43:52 -0600 Subject: [PATCH] Add a Board type for easier type consistency --- common/src/index.ts | 1 + common/src/types/GameBoard.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 common/src/types/GameBoard.ts diff --git a/common/src/index.ts b/common/src/index.ts index 3c91431..1e7f2d7 100644 --- a/common/src/index.ts +++ b/common/src/index.ts @@ -12,6 +12,7 @@ // Data Structures export * from "./types/Colour"; export * from "./types/FuelCard"; + export * from "./types/GameBoard"; export * from "./types/Spaceship"; export * from "./types/PlayerData"; export * from "./types/GameOption"; diff --git a/common/src/types/GameBoard.ts b/common/src/types/GameBoard.ts new file mode 100644 index 0000000..2ae5343 --- /dev/null +++ b/common/src/types/GameBoard.ts @@ -0,0 +1 @@ +export type Board = (string|null)[]; \ No newline at end of file