More lint

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:21:10 -08:00
parent cb2810b263
commit 62dbd3248a
2 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
R extends FastifyRequest<any>,
TSchema extends z.ZodSchema<unknown> | undefined = undefined,
T = TSchema extends z.ZodSchema<infer R> ? R : string
T = TSchema extends z.ZodSchema<infer U> ? U : string
>({
req,
schema
@@ -71,7 +71,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
if (!strBody) {
done(null, undefined);
}
const json = JSON.parse(strBody);
const json: unknown = JSON.parse(strBody);
done(null, json);
} catch (err) {
const error = err as Error;