Class PathArgs<T>

Type Parameters

  • T extends object

Hierarchy

  • Judgement<T>
    • PathArgs

Constructors

Properties

Methods

Constructors

Properties

data: undefined | T

Methods

  • Type Parameters

    • M extends RegExp | Matcher<any>

    • P extends string

    Parameters

    • prop: P
    • matcher: M
    • then: ((res) => void)
        • (res): void
        • Parameters

          • res: PathValue<T, P>

          Returns void

    Returns void

  • Type Parameters

    • M extends RegExp | Matcher<any>

    • P extends string

    Parameters

    • prop: P
    • matcher: M
    • Optional on_error: OnJudgementError

    Returns Exclude<PathValue<T, P>, undefined>

  • Returns T

  • Type Parameters

    • P extends string

    Parameters

    • path: P

    Returns undefined | PathValue<T, P>

  • Type Parameters

    • P extends string

    Parameters

    • path: P
    • def: PathValue<T, P>

    Returns Exclude<PathValue<T, P>, undefined>

  • Type Parameters

    • M extends RegExp | Matcher<any>

    • P extends string

    Parameters

    • prop: P
    • matcher: M

    Returns undefined | Exclude<PathValue<T, P>, undefined>

  • Type Parameters

    • M extends RegExp | Matcher<any>

    • P extends string

    Parameters

    • prop: P
    • matcher: M
    • def: MatcherInferType<M>

    Returns Exclude<PathValue<T, P>, undefined>

  • Parameters

    • prop: string
    • desc: MismatchDescription
    • Optional on_error: ((prop, desc) => string)
        • (prop, desc): string
        • Parameters

          • prop: string
          • desc: MismatchDescription

          Returns string

    Returns never

Generated using TypeDoc