/opt/canhelp/node_modules/better-auth/dist/db
NameSizeModeActions
adapter-base.d.mts4250644editdlrm
adapter-base.mjs9940644editdlrm
adapter-base.mjs.map20200644editdlrm
adapter-kysely.d.mts3280644editdlrm
adapter-kysely.mjs8460644editdlrm
adapter-kysely.mjs.map15010644editdlrm
field-converter.d.mts4440644editdlrm
field-converter.mjs6270644editdlrm
field-converter.mjs.map14230644editdlrm
field.d.mts37030644editdlrm
get-migration.d.mts8040644editdlrm
get-migration.mjs123110644editdlrm
get-migration.mjs.map260160644editdlrm
get-schema.d.mts3590644editdlrm
get-schema.mjs9960644editdlrm
get-schema.mjs.map20290644editdlrm
index.d.mts12150644editdlrm
index.mjs18300644editdlrm
index.mjs.map3850644editdlrm
internal-adapter.d.mts6390644editdlrm
internal-adapter.mjs217620644editdlrm
internal-adapter.mjs.map510020644editdlrm
schema.d.mts25860644editdlrm
schema.mjs49830644editdlrm
schema.mjs.map103770644editdlrm
to-zod.d.mts15830644editdlrm
to-zod.mjs8650644editdlrm
to-zod.mjs.map34010644editdlrm
verification-token-storage.mjs10840644editdlrm
verification-token-storage.mjs.map21790644editdlrm
with-hooks.d.mts17300644editdlrm
with-hooks.mjs71400644editdlrm
with-hooks.mjs.map162870644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/db/to-zod.d.mts (1583B)
import { DBFieldAttribute } from "@better-auth/core/db"; import * as z from "zod"; //#region src/db/to-zod.d.ts declare function toZodSchema, IsClientSide extends boolean>({ fields, isClientSide }: { fields: Fields; /** * If true, then any fields that have `input: false` will be removed from the schema to prevent user input. */ isClientSide: IsClientSide; }): z.ZodObject }>, z.core.$strip>; type FieldAttributeToSchema, isClientSide extends boolean = false> = Field extends { type: any; } ? GetInput>> : Record; type GetType = F extends { type: "string"; } ? z.ZodString : F extends { type: "number"; } ? z.ZodNumber : F extends { type: "boolean"; } ? z.ZodBoolean : F extends { type: "date"; } ? z.ZodDate : z.ZodAny; type GetRequired = F extends { required: true; } ? Schema : z.ZodOptional; type GetInput = Field extends { input: false; } ? isClientSide extends true ? never : Schema : Schema; type RemoveNeverProps = { [K in keyof T as [T[K]] extends [never] ? never : K]: T[K] }; //#endregion export { FieldAttributeToSchema, toZodSchema }; //# sourceMappingURL=to-zod.d.mts.map