mirror of
https://github.com/documenso/documenso.git
synced 2026-08-24 07:12:23 +10:00
chore(trpc): type-safety cleanups across routers
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user