@minofrk/msf-io-ts
Version:
Type utilities with io-ts for MSF format.
460 lines (459 loc) • 21.4 kB
TypeScript
import { TypeOf } from 'io-ts';
import { DeepReadonly } from '../deep-readonly';
export declare const MSFType: import("io-ts").TypeC<{
aptex: import("io-ts").RecordC<import("io-ts").StringC, import("io-ts").UnionC<[import("io-ts").StringC, import("io-ts").UndefinedC]>>;
kit: import("io-ts").IntersectionC<[import("io-ts").PartialC<{
im: import("io-ts").BrandC<import("io-ts").StringC, import("./date-time-string").DateTimeStringBrand>;
oprens: import("io-ts").StringC;
}>, import("io-ts").TypeC<{
fala: import("io-ts").UnionC<[import("io-ts").LiteralC<0>, import("io-ts").BrandC<import("io-ts").BrandC<import("io-ts").NumberC, import("io-ts").IntBrand>, import("./fala-type").FalaTypeBrand>]>;
slax: import("io-ts").TypeC<{
sast: import("io-ts").UnionC<[import("io-ts").LiteralC<"arxe">, import("io-ts").LiteralC<"sorn">]>;
arxe: import("io-ts").TypeC<{
txifol: import("io-ts").ArrayC<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;
}>>;
evol: import("io-ts").UnionC<[import("io-ts").NullC, 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;
}>]>;
}>;
sorn: import("io-ts").TypeC<{
txifol: import("io-ts").ArrayC<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;
}>>;
evol: import("io-ts").UnionC<[import("io-ts").NullC, 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;
}>]>;
}>;
ele: import("io-ts").Type<import("../state/septuple").Septuple<import("../state/septuple").Septuple<"tem" | "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null>>, import("../state/septuple").Septuple<import("../state/septuple").Septuple<"tem" | "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null>>, unknown>;
korol: import("io-ts").ArrayC<import("io-ts").KeyofC<{
pal: null;
ful: null;
mik: null;
fav: null;
zan: null;
gil: null;
ruj: null;
tan: null;
jil: null;
lax: null;
mat: null;
kun: null;
rez: null;
din: null;
tem: null;
}>>;
}>;
mit: import("io-ts").ArrayC<import("io-ts").Type<{
fixt: ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
pit: "xeltsoldes" | "teomsast";
vastan: "arxe" | "sorn";
}) | ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
pit: "artansoldes";
vastan: "arxe" | "sorn";
ito: 0 | 1 | 2 | 3 | 4;
}) | ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
pit: "daim";
});
seslax: ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
ov: {
pit: "leim";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "okke";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}, {
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "kor";
ka: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
} | {
pit: "ev";
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir";
} | {
pit: "sed";
};
slax: {
sast: "arxe" | "sorn";
arxe: {
txifol: ("rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir")[];
evol: "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null;
};
sorn: {
txifol: ("dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser")[];
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | null;
};
ele: import("../state/septuple").Septuple<import("../state/septuple").Septuple<"tem" | "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null>>;
korol: ("tem" | "gil" | "ful" | "zan" | "pal" | "mik" | "fav" | "ruj" | "tan" | "rez" | "jil" | "din" | "lax" | "mat" | "kun")[];
};
mit: any[];
})[];
}, {
fixt: ({
im?: string | undefined;
oprens?: string | undefined;
} & {
pit: "xeltsoldes" | "teomsast";
vastan: "arxe" | "sorn";
}) | ({
im?: string | undefined;
oprens?: string | undefined;
} & {
pit: "artansoldes";
vastan: "arxe" | "sorn";
ito: 0 | 1 | 2 | 3 | 4;
}) | ({
im?: string | undefined;
oprens?: string | undefined;
} & {
pit: "daim";
});
seslax: ({
im?: string | undefined;
oprens?: string | undefined;
} & {
ov: {
pit: "leim";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "okke";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}, {
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "kor";
ka: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
} | {
pit: "ev";
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir";
} | {
pit: "sed";
};
slax: {
sast: "arxe" | "sorn";
arxe: {
txifol: ("rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir")[];
evol: "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null;
};
sorn: {
txifol: ("dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser")[];
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | null;
};
ele: import("../state/septuple").Septuple<import("../state/septuple").Septuple<"tem" | "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null>>;
korol: ("tem" | "gil" | "ful" | "zan" | "pal" | "mik" | "fav" | "ruj" | "tan" | "rez" | "jil" | "din" | "lax" | "mat" | "kun")[];
};
mit: any[];
})[];
}, unknown>>;
}>]>;
fixt: import("io-ts").IntersectionC<[import("io-ts").PartialC<{
im: import("io-ts").BrandC<import("io-ts").StringC, import("./date-time-string").DateTimeStringBrand>;
oprens: import("io-ts").StringC;
}>, import("io-ts").UnionC<[import("io-ts").TypeC<{
pit: import("io-ts").UnionC<[import("io-ts").LiteralC<"xeltsoldes">, import("io-ts").LiteralC<"teomsast">]>;
vastan: import("io-ts").UnionC<[import("io-ts").LiteralC<"arxe">, import("io-ts").LiteralC<"sorn">]>;
}>, import("io-ts").TypeC<{
pit: import("io-ts").LiteralC<"artansoldes">;
vastan: import("io-ts").UnionC<[import("io-ts").LiteralC<"arxe">, import("io-ts").LiteralC<"sorn">]>;
ito: 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").TypeC<{
pit: import("io-ts").LiteralC<"daim">;
}>]>]>;
seslax: import("io-ts").ArrayC<import("io-ts").Type<{
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
ov: {
pit: "leim";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "okke";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}, {
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "kor";
ka: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
} | {
pit: "ev";
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir";
} | {
pit: "sed";
};
slax: {
sast: "arxe" | "sorn";
arxe: {
txifol: ("rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir")[];
evol: "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null;
};
sorn: {
txifol: ("dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser")[];
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | null;
};
ele: import("../state/septuple").Septuple<import("../state/septuple").Septuple<"tem" | "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null>>;
korol: ("tem" | "gil" | "ful" | "zan" | "pal" | "mik" | "fav" | "ruj" | "tan" | "rez" | "jil" | "din" | "lax" | "mat" | "kun")[];
};
mit: {
fixt: ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
pit: "xeltsoldes" | "teomsast";
vastan: "arxe" | "sorn";
}) | ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
pit: "artansoldes";
vastan: "arxe" | "sorn";
ito: 0 | 1 | 2 | 3 | 4;
}) | ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & {
pit: "daim";
});
seslax: ({
im?: import("io-ts").Branded<string, import("./date-time-string").DateTimeStringBrand> | undefined;
oprens?: string | undefined;
} & any)[];
}[];
}, {
im?: string | undefined;
oprens?: string | undefined;
} & {
ov: {
pit: "leim";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "okke";
luul: [{
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}, {
i: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
a: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
}];
} | {
pit: "kor";
ka: {
alsia: 0 | 1 | 2 | 3 | 4 | 5 | 6;
soom: 0 | 1 | 2 | 3 | 4 | 5 | 6;
};
} | {
pit: "ev";
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir";
} | {
pit: "sed";
};
slax: {
sast: "arxe" | "sorn";
arxe: {
txifol: ("rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir")[];
evol: "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null;
};
sorn: {
txifol: ("dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser")[];
evol: "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | null;
};
ele: import("../state/septuple").Septuple<import("../state/septuple").Septuple<"tem" | "dia" | "vio" | "lis" | "gil" | "ful" | "dyu" | "mel" | "ral" | "zan" | "pal" | "mik" | "fav" | "ruj" | "ser" | "rav" | "tan" | "lin" | "rez" | "jil" | "din" | "ket" | "len" | "lax" | "nen" | "pin" | "mat" | "kun" | "mir" | null>>;
korol: ("tem" | "gil" | "ful" | "zan" | "pal" | "mik" | "fav" | "ruj" | "tan" | "rez" | "jil" | "din" | "lax" | "mat" | "kun")[];
};
mit: {
fixt: ({
im?: string | undefined;
oprens?: string | undefined;
} & {
pit: "xeltsoldes" | "teomsast";
vastan: "arxe" | "sorn";
}) | ({
im?: string | undefined;
oprens?: string | undefined;
} & {
pit: "artansoldes";
vastan: "arxe" | "sorn";
ito: 0 | 1 | 2 | 3 | 4;
}) | ({
im?: string | undefined;
oprens?: string | undefined;
} & {
pit: "daim";
});
seslax: ({
im?: string | undefined;
oprens?: string | undefined;
} & any)[];
}[];
}, unknown>>;
}>;
export declare type MSFType = TypeOf<typeof MSFType>;
export declare type ReadonlyMSFType = DeepReadonly<MSFType>;