Please sign in to comment.
Clean up the integer-only number type
- Shorten the typeSpec.allowFloat check. - Always name the type 'number', even when allowFloat is false. - Instead of clamping float type spec values, throw an error from the constructor. - Remove some extra whitespace. Signed-off-by: Adam Goforth <firstname.lastname@example.org>
- Loading branch information...
Showing with 20 additions and 47 deletions.