Class KeyboardEventSerializer

Hierarchy

  • SerializerBase<KeyboardEvent, SerializedData>
    • KeyboardEventSerializer

Constructors

Accessors

Methods

Constructors

Accessors

  • get classToSerialize(): {
        prototype: KeyboardEvent;
        DOM_KEY_LOCATION_LEFT: number;
        DOM_KEY_LOCATION_NUMPAD: number;
        DOM_KEY_LOCATION_RIGHT: number;
        DOM_KEY_LOCATION_STANDARD: number;
        new (type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
    }
  • Getter to overload which return the Class to serialize

    Abstract

    Returns

    Class object to serialize

    Returns {
        prototype: KeyboardEvent;
        DOM_KEY_LOCATION_LEFT: number;
        DOM_KEY_LOCATION_NUMPAD: number;
        DOM_KEY_LOCATION_RIGHT: number;
        DOM_KEY_LOCATION_STANDARD: number;
        new (type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
    }

      • new (type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent
      • Parameters

        • type: string
        • Optional eventInitDict: KeyboardEventInit

        Returns KeyboardEvent

    • prototype: KeyboardEvent
    • Readonly DOM_KEY_LOCATION_LEFT: number
    • Readonly DOM_KEY_LOCATION_NUMPAD: number
    • Readonly DOM_KEY_LOCATION_RIGHT: number
    • Readonly DOM_KEY_LOCATION_STANDARD: number

Methods

  • Method to implement for serialize an object (which match the classToSerialize) (reverse operation of deserialize)

    Abstract

    Returns

    Return a standard serialized object

    Parameters

    • e: KeyboardEvent

      Object to serialize

    Returns SerializedData

Generated using TypeDoc