Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

Functions

Type aliases

ValidationSpec

ValidationSpec<T>: {[ k in keyof T & string]: TypeCoercion<T[k]> }

Type parameters

  • T: any

Functions

Const validator

  • Type parameters

    • T

    Parameters

    • spec: ValidationSpec<T>

      A specification of the validation/coercion to be performed.

    Returns (obj: any) => T

      • (obj: any): T
      • Parameters

        • obj: any

        Returns T

Generated using TypeDoc