Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kas-elvirov/f51857f1d49b7e5bcb27c07fb344a3ad to your computer and use it in GitHub Desktop.
Save kas-elvirov/f51857f1d49b7e5bcb27c07fb344a3ad to your computer and use it in GitHub Desktop.
Nemathode toOutputType configuration example
const toOutputValue = (val: unknown): number | boolean => {
if (val instanceof Decimal) {
return val.toNumber();
}
return val;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment