Skip to content

Commit

Permalink
chore(examples): remove unnecessary 'as any' on route return (#12399)
Browse files Browse the repository at this point in the history
Remove unnecessary as any on route return

Remove unnecessary as any on route return, the typing does not error anymore on this assignment.
  • Loading branch information
FinnWard authored Dec 18, 2024
1 parent 7969dd5 commit c96e162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/examples/nextjs/app/api/protected/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const GET = auth((req) => {
}

return Response.json({ message: "Not authenticated" }, { status: 401 })
}) as any // TODO: Fix `auth()` return type
})

0 comments on commit c96e162

Please sign in to comment.