Interface LRPCRequest<T>

LRPCRequest interface This interface is used to pass data between the endpoint and the handler

The type of the response

interface LRPCRequest<T> {
    context: {
        id: string;
        path: string;
        permissions: IPermission;
        type: string;
    };
    files: File[];
    payload: T;
    request: Request;
    response: Response;
}

Type Parameters

  • T

    The type of the payload

Properties

context: { id: string; path: string; permissions: IPermission; type: string }

The context of the request

Type declaration

  • id: string

    The user id

  • path: string

    The path/procedure of the request

  • permissions: IPermission

    The permissions of the user

  • type: string

    The type of the request

files: File[]

The files uploaded by the user

payload: T

The payload of the request

request: Request

The express request object

response: Response

The express response object