@minofrk/msf-io-ts
Version:
Type utilities with io-ts for MSF format.
18 lines • 541 B
JavaScript
import { type, array, union, null as tNull } from 'io-ts';
import { Player } from '../player';
import { Sorn, Arxe, Piece, TurnablePiece } from '../piece';
import { septuple } from './septuple';
export var State = type({
sast: Player,
arxe: type({
txifol: array(Sorn),
evol: union([tNull, Sorn]),
}),
sorn: type({
txifol: array(Arxe),
evol: union([tNull, Arxe]),
}),
ele: septuple(septuple(union([tNull, Piece]))),
korol: array(TurnablePiece),
});
//# sourceMappingURL=codec.js.map