(input, { isFinal })
| 15 | |
| 16 | // Converts the empty string entered by the user to the word 'none` for the user when entering optional numbers. |
| 17 | export const displayNoneForEmpty: TransformerFunction = (input, { isFinal }) => isFinal && input === '' ? 'none' : input |
| 18 | |
| 19 | export type DefaultValueOrFn<T> = T | (() => T) |
| 20 |