Defjs
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.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao