Search


Search something to see results

ParseResult

ParseResult: Success<T> | Failure

Type Parameters

  • T
import * as x from 'unhoax'

const result = x.string.parse(someInput)
result:
| { success: true, value: T }
| { success: false, error: ParseError }