Function LRPCPayload

  • This decorator is used to mark a class as part of the type definition in the payload or response of an endpoint

    Parameters

    • path: string

      The path of the endpoint

    • OptionalisResponse: boolean

      Whether the endpoint is a response or not

    Returns <T extends new (...args: any[]) => {}>(constructor: T) => void

    The payload decorator