Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TypeErrorConstructor

Hierarchy

Callable

  • __call(message?: undefined | string): TypeError
  • __call(message?: undefined | string): Error
  • Parameters

    • Optional message: undefined | string

    Returns TypeError

  • Parameters

    • Optional message: undefined | string

    Returns Error

Index

Constructors

constructor

  • new TypeErrorConstructor(message?: undefined | string): TypeError

Properties

Optional prepareStackTrace

prepareStackTrace: undefined | ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

see

https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces

Readonly prototype

prototype: TypeError

stackTraceLimit

stackTraceLimit: number

Methods

captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void