better-auth
Version:
The most comprehensive authentication framework for TypeScript.
6 lines • 396 B
text/typescript
import { DBFieldAttribute } from "@better-auth/core/db";
//#region src/db/field-converter.d.ts
declare function convertToDB<T extends Record<string, any>>(fields: Record<string, DBFieldAttribute>, values: T): T;
declare function convertFromDB<T extends Record<string, any>>(fields: Record<string, DBFieldAttribute>, values: T | null): T | null;
//#endregion
export { convertFromDB, convertToDB };