Created
May 22, 2021 17:40
-
-
Save kas-elvirov/76b57b2479abcbcc33a3019f159a91c5 to your computer and use it in GitHub Desktop.
Nemathode toInputType 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 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