mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 04:19:22 +00:00
chore: enable lint rule noTsIgnore (#4296)
This commit is contained in:
@@ -59,7 +59,7 @@ async function generateMDX() {
|
||||
const functionName = Object.keys(exports)[0]! as string;
|
||||
|
||||
const [path, options]: [string, Options] =
|
||||
//@ts-ignore
|
||||
//@ts-expect-error
|
||||
await exports[Object.keys(exports)[0]!];
|
||||
if (!path || !options) return console.error(`No path or options.`);
|
||||
|
||||
@@ -194,17 +194,17 @@ function parseZodShape(zod: z.ZodAny, path: string[]) {
|
||||
{ description: "some descriptiom" },
|
||||
).shape;
|
||||
|
||||
//@ts-ignore
|
||||
//@ts-expect-error
|
||||
if (zod._def.typeName === "ZodOptional") {
|
||||
isRootOptional = true;
|
||||
const eg = z.optional(z.object({}));
|
||||
const x = zod as never as typeof eg;
|
||||
//@ts-ignore
|
||||
//@ts-expect-error
|
||||
shape = x._def.innerType.shape;
|
||||
} else {
|
||||
const eg = z.object({});
|
||||
const x = zod as never as typeof eg;
|
||||
//@ts-ignore
|
||||
//@ts-expect-error
|
||||
shape = x.shape;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user