UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

13 lines (12 loc) 639 B
import type { BaseFieldConfig, Field, TActionContext } from "../../data"; import type { ColumnDataType } from "kysely"; import type { TestRunner } from "../../core/test"; type ConstructableField = new (name: string, config?: Partial<BaseFieldConfig>) => Field; type FieldTestConfig = { defaultValue: any; sampleValues?: any[]; schemaType: ColumnDataType; }; export declare function transformPersist(field: Field, value: any, context?: TActionContext): Promise<any>; export declare function fieldTestSuite(testRunner: TestRunner, fieldClass: ConstructableField, config: FieldTestConfig, _requiredConfig?: any): void; export {};