Function serializable

  • Decorator to mark a class as serializable using the Serialization class.

    Note

    • Requires "experimentalDecorators": true in tsconfig.json

    Parameters

    • id: string

      The id to use when serializing the class. This is used to identify the class when deserializing. Class names can be mangled during minification, so it is required to provide an id.

    Returns (<T>(constructor) => T)

      • <T>(constructor): T
      • Type Parameters

        • T extends (new (...args) => any)

        Parameters

        • constructor: T

        Returns T

Generated using TypeDoc