UNPKG

@mitcsutt/kiln-forms

Version:

Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui

10 lines (9 loc) • 598 B
import type { Computer } from '../../kit/types.js'; import type { RuntimeDeriveRule } from '../../runtime/formRuntime.js'; import type { UntypedFormSchema } from '../core/types.js'; /** * A schema's `compute` fields as runtime derive rules (§10.6 "compute → form derive registration"), * computed once per (schema, computer registry). Only root-scope fields: an item field's path is * per item, which a static rule can't name (dev warning). */ export declare function schemaDeriveRules(schema: UntypedFormSchema, computers: Readonly<Record<string, Computer>>): readonly RuntimeDeriveRule[];