@gamepark/rules-api
Version:
API to implement the rules of a board game
14 lines • 455 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasEliminations = void 0;
/**
* Type guard for {@link Eliminations} interface
* @param rules Rules of a game
* @returns true if the Rules implements {@link Eliminations}
*/
function hasEliminations(rules) {
var test = rules;
return typeof test.isEliminated === 'function';
}
exports.hasEliminations = hasEliminations;
//# sourceMappingURL=Eliminations.js.map