UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

5 lines (4 loc) 344 B
import { OptionsSpec } from './OptionsSpec'; import { WithIdOption } from './WithIdOption'; import { WithPlayerOptionsSpec } from './WithPlayerOptionsSpec'; export declare function isWithPlayerIdOptions<Id, P extends WithIdOption<Id>, Options>(optionsSpec: OptionsSpec<Options>): optionsSpec is OptionsSpec<Options> & WithPlayerOptionsSpec<P>;