Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TypeCheckError

A type checking error.

Hierarchy

  • TypeCheckError

Index

Constructors

  • new TypeCheckError(path: Path, expectedTypeName: string, actualValue: any): TypeCheckError
  • Creates an instance of TypeError.

    Parameters

    • path: Path

      Sub-path where the error occured.

    • expectedTypeName: string

      Name of the expected type.

    • actualValue: any

      Actual value.

    Returns TypeCheckError

Properties

actualValue: any
expectedTypeName: string
path: Path

Methods

  • throw(typeCheckedValue: any): never
  • Throws the type check error as an actual error.

    Parameters

    • typeCheckedValue: any

      Usually the value where the type check was invoked.

    Returns never

Generated using TypeDoc