Skip to content

accumulateErrors #20

@devanshj

Description

@devanshj
/**
 * Creates a new parser that accumulates
 * and yields the errors of the parser
 * passed in a tree-like format,
 * something like this...
 * ```
 * is not of type 'A' as
 *   it is missing key 'x'
 *   it's value at key 'y' is not of type 'B' as
 *     it is missing key 'p'
 *     it's value at key 'q' is not type 'string'
 *   it's value at key 'z' is not type 'number'
 * ```
 */
declare const accumulateErrors:
  <T extends UnknownParser>(p: T) => T

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions