Skip to content

Commit 4d16e63

Browse files
author
Luca Forstner
committed
make options optional
1 parent 043013f commit 4d16e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/trpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface TrpcMiddlewareArguments<T> {
1818
* Use the Sentry tRPC middleware in combination with the Sentry server integration. (e.g. express integration or
1919
* Next.js SDK)
2020
*/
21-
export async function sentryTrpcMiddleware(options: SentryTrpcMiddlewareOptions) {
21+
export async function sentryTrpcMiddleware(options: SentryTrpcMiddlewareOptions = {}) {
2222
return async function <T>({ path, type, next, rawInput }: TrpcMiddlewareArguments<T>): Promise<T> {
2323
const hub = getCurrentHub();
2424
const clientOptions = hub.getClient()?.getOptions();

0 commit comments

Comments
 (0)