UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

9 lines 269 B
/** * Type guard for {@link TimeLimit} interface * @param rules Rules of the game * @returns true if rules implements {@link TimeLimit} */ export function hasTimeLimit(rules) { return typeof rules.giveTime === 'function'; } //# sourceMappingURL=TimeLimit.js.map