• Packs a payload object into a new envelope.

    Parameters

    • namespace: string

      The namespace URL of your data. It can be an URL to the scheme of your data format.

    Returns (<T>(payload) => Readonly<{
        namespace: string;
        payload: T;
    }>)

    The new envelope with payload.

      • <T>(payload): Readonly<{
            namespace: string;
            payload: T;
        }>
      • Type Parameters

        • T

        Parameters

        • payload: T

        Returns Readonly<{
            namespace: string;
            payload: T;
        }>

Generated using TypeDoc