bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
5 lines (4 loc) • 400 B
TypeScript
import { Entity, type Field } from "../../data";
import { type TAppDataEntity, type TAppDataRelation } from "../../data/data-schema";
export declare function constructEntity(name: string, entityConfig: TAppDataEntity): Entity<string, Record<string, Field<any, any, any>>>;
export declare function constructRelation(relationConfig: TAppDataRelation, resolver: (name: Entity | string) => Entity): any;