Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "discourse/serialize"

Index

Functions

Functions

serialize

  • Invoked when an internal representation should be sent out to the client

    throws

    { TypeError } value must be a concrete Discourse class.

    Type parameters

    • Data

    Parameters

    • value: Internal<Data>

      the internal value to be serialized

    Returns External<Data>

    the external representation that will be converted to JSON