title |
---|
Parse |
Type declarations included in the Parse module.
Added in next
No other changes yet.
enum ParseIntError {
ParseIntEmptyString,
ParseIntInvalidDigit,
ParseIntInvalidRadix,
}
Represents an error that occurred trying to parse an integer.
Variants:
ParseIntEmptyString
Represents an error caused by trying to parse an empty string.
ParseIntInvalidDigit
Represents an error caused by trying to parse a string with an invalid character.
ParseIntInvalidRadix
Represents an error caused by trying to parse with an invalid radix.
Functions and constants included in the Parse module.
parseInt : (string: String, radix: Number) => Result<Number, ParseIntError>