mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 06:16:40 +00:00
used zod codemod
This commit is contained in:
@@ -23,12 +23,10 @@ export type CreateNewtResponse = {
|
||||
secret: string;
|
||||
};
|
||||
|
||||
const createNewtSchema = z
|
||||
.object({
|
||||
const createNewtSchema = z.strictObject({
|
||||
newtId: z.string(),
|
||||
secret: z.string()
|
||||
})
|
||||
.strict();
|
||||
});
|
||||
|
||||
export async function createNewt(
|
||||
req: Request,
|
||||
|
||||
Reference in New Issue
Block a user