chore(trpc): type-safety cleanups across routers

This commit is contained in:
ephraimduncan
2026-08-15 13:49:02 +00:00
parent 688ef2fdf3
commit e7b66fe069
22 changed files with 1537 additions and 21 deletions
@@ -8,6 +8,8 @@ export const createPasskeyRoute = authenticatedProcedure
.input(ZCreatePasskeyRequestSchema)
.output(ZCreatePasskeyResponseSchema)
.mutation(async ({ ctx, input }) => {
// SAFETY: ZRegistrationResponseJSONSchema validates the same fields RegistrationResponseJSON
// declares; the assertion only restores the library type that zod inference loses.
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
const verificationResponse = input.verificationResponse as RegistrationResponseJSON;