Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kas-elvirov/76b57b2479abcbcc33a3019f159a91c5 to your computer and use it in GitHub Desktop.
Save kas-elvirov/76b57b2479abcbcc33a3019f159a91c5 to your computer and use it in GitHub Desktop.
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