Skip to content

Instantly share code, notes, and snippets.

Nemathode toInputType configuration example
const toInputType = (val: unknown): Decimal | unknown => {
if (typeof val === 'number') {
const input = new Decimal(val);
return input;
}
return val;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment