bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
28 lines (27 loc) • 901 B
TypeScript
import type { EntityData, EntityManager, Field } from "../data";
export declare function getDefaultValues(fields: Field[], data: EntityData): EntityData;
export declare function getChangeSet(action: string, formData: EntityData, data: EntityData, fields: Field[]): EntityData;
export declare function readableEmJson(_em: EntityManager): {
entities: {
name: string;
fields: string[];
type: "regular" | "system" | "generated";
}[];
indices: {
name: string | undefined;
entity: string;
fields: string[];
unique: boolean;
}[];
relations: {
type: import("../data").RelationType;
source: string;
target: string;
config: {
required?: boolean | undefined;
mappedBy?: string | undefined;
inversedBy?: string | undefined;
};
name: string;
}[];
};