Signature: parseInt(s: string) -> Result<int, StringError>

Description: Strict base-10 signed-int parser. No whitespace tolerance.

Parameters

Returns: Result<int, StringError>

Example

parseInt("42")  // Success { value: 42 }