Class InvalidPropTypeError

Error for when an unknown PropType is passed to an switch, gets thrown in the default case

Hierarchy

  • Error
    • InvalidPropTypeError

Constructors

  • Parameters

    • proptype: unknown
    • name: string
    • key: string
    • where: string

    Returns InvalidPropTypeError

Properties

cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function
      Optional

    Returns void

Generated using TypeDoc