UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

9 lines 302 B
/** * Type guard for {@link LocalMovePreview} interface * @param rules The game's rules * @return true if the rules implements {@link LocalMovePreview} */ export function hasLocalMovePreview(rules) { return typeof rules.previewMove === 'function'; } //# sourceMappingURL=LocalMovePreview.js.map