tickwerk/src/helpers.ts

11 lines
228 B
TypeScript
Raw Normal View History

2022-05-16 02:08:27 +02:00
// SPDX-FileCopyrightText: 2021 Johannes Loher
//
// SPDX-License-Identifier: MIT
export const getGame = (): Game => {
if (!(game instanceof Game)) {
throw new Error('game is not initialized yet.');
}
return game;
};