UNPKG

@astro-utils/forms

Version:

Server component for Astro (call server functions from client side with validation and state management)

21 lines (20 loc) 631 B
import { BindTypes } from "./form-utils/bind-form.js"; import ViewStateManager from "./form-utils/view-state.js"; export type BindContext = { executeAfter: (() => void | Promise<void>)[]; method: string; bind: BindTypes<unknown>; tempBindValues: Record<string, any>; elementsState: Record<string, any>; buttonIds: [string, string | null, boolean][]; onSubmitClickGlobal: string; settings: { showValidationErrors: boolean; reloadState: boolean; }; bindId: string; newState: boolean; renderForm?: boolean; reloadForm?: boolean; viewState?: ViewStateManager; };