Class TypeInformation<T, U>Abstract

Type Parameters

  • T

  • U = undefined

Hierarchy

Constructors

Accessors

Methods

  • Checks if the given value is of the type defined by this type information

    Type Parameters

    • V

    Parameters

    • value: V

      The value to check

    Returns U extends any
        ? boolean
        : Extends<V, T>

  • Returns the check-error for the given value

    Parameters

    • value: unknown

      The value to check

    Returns undefined | string

    The error if the value is not of the type defined by this type information

Generated using TypeDoc