Torn API Client
    Preparing search index...

    Type Alias Requester

    Requester: <T = unknown>(
        path: string,
        params: Record<string, unknown>,
    ) => Promise<T>

    Core function for making API requests It's generic, allowing the caller to specify the expected return type

    Type declaration

      • <T = unknown>(path: string, params: Record<string, unknown>): Promise<T>
      • Type Parameters

        • T = unknown

          The expected type of the response data

        Parameters

        • path: string

          The API endpoint path (e.g., "/user/profile")

        • params: Record<string, unknown>

          The query parameters for the request

        Returns Promise<T>

        A Promise that resolves to the response data of type T