tickwerk/src/helpers.js
Johannes Loher b6411f39dc feat: update for v10
Unfortunately, ditching TypeScript is needed for that :(
2022-11-28 00:52:31 +01:00

10 lines
222 B
JavaScript

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