Converting a Schema to TypeScript Type

Noob question:

Let's say I have a schema that looks like this:

const Sci = S.struct({
id: S.number,
txtName: S.string,
txtCode: S.string,
txtSpelling: S.string,
booPrefer: S.number,
numNote: S.number,
numOrdering: S.number,
numSymForms: S.number,
numHalfStepsInRow: S.number,
txtNumIntervalForm: S.string,
txtAltNames: S.string,
});

how do i get the typescript type from it, like:

type SciType = ????
Was this page helpful?