Created
May 22, 2021 17:40
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