Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MappingEvent

Hierarchy

Index

Constructors

constructor

Properties

data

data: any

Data shipped along with event notification, if any

mappedType

mappedType: Type<any>

mapping

type

type: string

Event string type

Static MAPPING_CREATED

MAPPING_CREATED: string = "mappingCreated"

This event is dispatched when a new mapping is created.

type

{string}

Static MAPPING_DESTROYED

MAPPING_DESTROYED: string = "mappingDestroyed"

This event is dispatched when a mapping is destroyed.

type

{string}

Static MAPPING_OVERRIDE

MAPPING_OVERRIDE: string = "mappingOverride"

This event is dispatched if an existing mapping is overridden without first unMapping it.

The reason for dispatching an event (and tracing a warning) is that in most cases, overriding existing mappings is a sign of bugs in the application. Deliberate mapping changes should be done by first removing the existing mapping.

type

{string}

Methods

toString

  • toString(): string