Core
ParseResult
Error-first tuple returned by struct.parse.
@defjs/core · Type
Signature
type ParseResult<O> = [error: null, value: O] | [error: StructError, value: undefined];
On success the error is null and value is the parsed output O. On failure the error is a StructError and value is always undefined.