@minofrk/msf-io-ts
Version:
Type utilities with io-ts for MSF format.
189 lines (188 loc) • 13 kB
TypeScript
import { TypeOf } from 'io-ts';
import { DeepReadonly } from './deep-readonly';
export declare const Coordinate: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
export declare type Coordinate = TypeOf<typeof Coordinate>;
export declare const Position: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
export declare type Position = TypeOf<typeof Position>;
export declare type ReadonlyPosition = DeepReadonly<Position>;
export declare const FromTo: import("io-ts").TypeC<{
i: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
a: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>;
export declare type FromTo = TypeOf<typeof FromTo>;
export declare type ReadonlyFromTo = DeepReadonly<FromTo>;
export declare const LeimMove: import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"leim">;
luul: import("io-ts").TupleC<[import("io-ts").TypeC<{
i: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
a: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>]>;
}>;
export declare type LeimMove = TypeOf<typeof LeimMove>;
export declare type ReadonlyLeimMove = DeepReadonly<LeimMove>;
export declare const OkkeMove: import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"okke">;
luul: import("io-ts").TupleC<[import("io-ts").TypeC<{
i: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
a: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>, import("io-ts").TypeC<{
i: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
a: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>]>;
}>;
export declare type OkkeMove = TypeOf<typeof OkkeMove>;
export declare type ReadonlyOkkeMove = DeepReadonly<OkkeMove>;
export declare const KorMove: import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"kor">;
ka: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>;
export declare type KorMove = TypeOf<typeof KorMove>;
export declare type ReadonlyKorMove = DeepReadonly<KorMove>;
export declare const EvMove: import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"ev">;
evol: import("io-ts").UnionC<[import("io-ts").KeyofC<{
dia: null;
vio: null;
lis: null;
gil: null;
ful: null;
dyu: null;
mel: null;
ral: null;
zan: null;
pal: null;
mik: null;
fav: null;
ruj: null;
ser: null;
}>, import("io-ts").KeyofC<{
rav: null;
tan: null;
lin: null;
rez: null;
jil: null;
din: null;
ket: null;
len: null;
lax: null;
nen: null;
pin: null;
mat: null;
kun: null;
mir: null;
}>]>;
}>;
export declare type EvMove = TypeOf<typeof EvMove>;
export declare type ReadonlyEvMove = DeepReadonly<EvMove>;
export declare const SedMove: import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"sed">;
}>;
export declare type SedMove = TypeOf<typeof SedMove>;
export declare type ReadonlySedMove = DeepReadonly<SedMove>;
export declare const Move: import("io-ts").UnionC<[import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"leim">;
luul: import("io-ts").TupleC<[import("io-ts").TypeC<{
i: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
a: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>]>;
}>, import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"okke">;
luul: import("io-ts").TupleC<[import("io-ts").TypeC<{
i: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
a: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>, import("io-ts").TypeC<{
i: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
a: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>]>;
}>, import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"kor">;
ka: import("io-ts").TypeC<{
alsia: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
soom: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").LiteralC<1>, import("io-ts").LiteralC<2>, import("io-ts").LiteralC<3>, import("io-ts").LiteralC<4>, import("io-ts").LiteralC<5>, import("io-ts").LiteralC<6>]>;
}>;
}>, import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"ev">;
evol: import("io-ts").UnionC<[import("io-ts").KeyofC<{
dia: null;
vio: null;
lis: null;
gil: null;
ful: null;
dyu: null;
mel: null;
ral: null;
zan: null;
pal: null;
mik: null;
fav: null;
ruj: null;
ser: null;
}>, import("io-ts").KeyofC<{
rav: null;
tan: null;
lin: null;
rez: null;
jil: null;
din: null;
ket: null;
len: null;
lax: null;
nen: null;
pin: null;
mat: null;
kun: null;
mir: null;
}>]>;
}>, import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"sed">;
}>]>;
export declare type Move = TypeOf<typeof Move>;
export declare type ReadonlyMove = DeepReadonly<Move>;