Created
May 22, 2021 17:42
-
-
Save kas-elvirov/f51857f1d49b7e5bcb27c07fb344a3ad to your computer and use it in GitHub Desktop.
Nemathode toOutputType configuration example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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