Class TypeGuardError<T>

Type Parameters

  • T = any

Hierarchy

  • Error
    • TypeGuardError

Constructors

Properties

expected: string
fake_expected_typed_value_?: T
message: string
method: string
name: string
path: undefined | string
stack?: string
value: any
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void