Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITypeHelper

This is the interface for custom type helpers. Any custom type helper should implement this interface in order to be compatible with the TypeHelper engine.

Hierarchy

  • ITypeHelper

Implemented by

Index

Methods

deserialize

  • deserialize(data: any): any
  • This method deserializes data from the Server into a format that will be consumed by the message handler. It can be any format as long as the consumer of the data is aware of it.

    Parameters

    • data: any

      The data to deserialize.

    Returns any

    Deserialized data.

serialize

  • serialize(data: any): string[]
  • This method is used to serialize data in order send it to the server. All data chuncks should be converted into an array of strings.

    Parameters

    • data: any

      The data to serialize.

    Returns string[]

    Serialized data as an array of strings.