UNPKG

565 BTypeScriptView Raw
1interface SentryTrpcMiddlewareOptions {
2 /** Whether to include procedure inputs in reported events. Defaults to `false`. */
3 attachRpcInput?: boolean;
4}
5export interface SentryTrpcMiddlewareArguments<T> {
6 path?: unknown;
7 type?: unknown;
8 next: () => T;
9 rawInput?: unknown;
10}
11/**
12 * Sentry tRPC middleware that captures errors and creates spans for tRPC procedures.
13 */
14export declare function trpcMiddleware(options?: SentryTrpcMiddlewareOptions): <T>(opts: SentryTrpcMiddlewareArguments<T>) => T;
15export {};
16//# sourceMappingURL=trpc.d.ts.map
\No newline at end of file