This error is thrown when we are dynamicly checking for the type of a value and the type is not the expected one.

Hierarchy

  • Error
    • InvalidTypeError

Constructors

Properties

errors: Errors
guard: Any
message: string
name: string
stack?: string
value: unknown
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void