better-auth-credentials-plugin
Version:
Generic credentials authentication plugin for Better Auth (To auth with ldap, external API, etc...)
6 lines (5 loc) • 389 B
TypeScript
import * as z3 from "zod/v3";
import * as z4 from "zod/v4/core";
export type Zod34Schema = z3.ZodTypeAny | z4.$ZodType;
export declare const isZodV4: (schema: Zod34Schema) => schema is z4.$ZodType<unknown, unknown, z4.$ZodTypeInternals<unknown, unknown>>;
export type inferZod34<T extends Zod34Schema> = T extends z3.ZodTypeAny ? z3.infer<T> : T extends z4.$ZodType ? z4.infer<T> : never;