UNPKG

trpc-playground

Version:

playground for running tRPC queries in the browser

21 lines (20 loc) 629 B
import { PlaygroundRequestOperation, TrpcPlaygroundConfig } from '@trpc-playground/types'; export type HTTPBody = { operation: PlaygroundRequestOperation; }; export declare const handler: (helpers: import("uttp").Helpers, config: TrpcPlaygroundConfig) => Promise<{ handleRequest(request: import("uttp").HTTPRequest): Promise<{ status: number; body: undefined; headers?: undefined; } | { status: number; headers: { 'Content-Type': string; }; body: string | undefined; }>; adapterOptions: { maxBodySize: number | undefined; }; }>;