Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Private _arbitrary

_arbitrary: boolean = false

Private _keys

_keys: ISchemaDefinition = ...

Private _partial

_partial: boolean = false

Protected _rules

_rules: Rule<any>[] = ...

_type

_type: {[ K in string | number | symbol]: Infer<T[K]> }

Methods

all

  • all(pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean): ObjectHandler<T>
  • Parameters

    • pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean
        • (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }): boolean
        • Parameters

          • v: unknown
          • k: string
          • obj: {[ K in string | number | symbol]: Infer<T[K]> }

          Returns boolean

    Returns ObjectHandler<T>

any

  • any(pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean): ObjectHandler<T>
  • Parameters

    • pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean
        • (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }): boolean
        • Parameters

          • v: unknown
          • k: string
          • obj: {[ K in string | number | symbol]: Infer<T[K]> }

          Returns boolean

    Returns ObjectHandler<T>

arbitrary

check

custom

every

  • every(pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean): ObjectHandler<T>
  • Parameters

    • pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean
        • (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }): boolean
        • Parameters

          • v: unknown
          • k: string
          • obj: {[ K in string | number | symbol]: Infer<T[K]> }

          Returns boolean

    Returns ObjectHandler<T>

nullable

numKeys

optional

partial

rule

some

  • some(pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean): ObjectHandler<T>
  • Parameters

    • pred: (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }) => boolean
        • (v: unknown, k: string, obj: {[ K in string | number | symbol]: Infer<T[K]> }): boolean
        • Parameters

          • v: unknown
          • k: string
          • obj: {[ K in string | number | symbol]: Infer<T[K]> }

          Returns boolean

    Returns ObjectHandler<T>

test

use

validate

Generated using TypeDoc