@tsed/schema-formio
Version:
Transform Ts.ED Schema & JsonSchema to a valid Formio schema
6 lines (4 loc) • 302 B
text/typescript
import {FormioComponent, FormioForm} from "@tsed/formio-types";
import {JsonSchemaOptions} from "@tsed/schema";
export type FormioDataResolverCtx = {component: FormioComponent; form: FormioForm} & JsonSchemaOptions;
export type FormioDataResolver = (ctx: FormioDataResolverCtx) => Promise<any> | any;