UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

13 lines (11 loc) 380 B
import { type ResourceAtom, createCtx } from "@cn-ui/reactive"; import type { RuleItem } from "async-validator"; export const MagicFormCtx = /* @__PURE__ */ createCtx<{ originData: unknown; disabled?: boolean; index?: number; validResult?: ResourceAtom<{ errors: RuleItem[]; fields: Record<string, RuleItem[]>; } | null>; }>(undefined, true);