UNPKG

solid-start-trpc

Version:

```ts import { createSolidAPIHandler } from "solid-start-trpc";

5 lines (4 loc) 292 B
import { type AnyRouter } from "@trpc/server"; import { type ApiHandler } from "solid-start/api/types"; import { type ICreateSolidAPIHandlerOpts } from "./types"; export declare function createSolidAPIHandler<TRouter extends AnyRouter>(opts: ICreateSolidAPIHandlerOpts<TRouter>): ApiHandler;