UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

13 lines 407 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasTimeLimit = void 0; /** * Type guard for {@link TimeLimit} interface * @param rules Rules of the game * @returns true if rules implements {@link TimeLimit} */ function hasTimeLimit(rules) { return typeof rules.giveTime === 'function'; } exports.hasTimeLimit = hasTimeLimit; //# sourceMappingURL=TimeLimit.js.map