Skip to content

SetChoice beta ​

TypeAlias of @v12-engine/engine

ts
export type SetChoice<D extends {
    id: string;
} = {
    id: string;
}> = 'all' | 'none' | SetPick<D>;

What a game takes of a default set, in code: all of it (when left out), none, or some: only these ids, all except these, with definitions of its own besides or in the place of the set's of the same id (with), and some of them changed (change, by id: fields laid over the set's, or a function of it)