diff --git a/packages/former/package.json b/packages/former/package.json index a888dd5..2b3f8b3 100644 --- a/packages/former/package.json +++ b/packages/former/package.json @@ -1,6 +1,6 @@ { "name": "former-ui", - "version": "0.0.11-next.31", + "version": "0.0.11-next.36", "repository": { "type": "git", "url": "git+https://github.com/geprog/former.git" diff --git a/packages/former/src/types.ts b/packages/former/src/types.ts index c1cfa51..c442c8d 100644 --- a/packages/former/src/types.ts +++ b/packages/former/src/types.ts @@ -5,7 +5,8 @@ export type SchemaNode = { name?: string; props?: Props; children?: SchemaNode[]; - if?: string; + showIf?: string; + errorMessage?: true | string; }; export type InternalSchemaNode = Omit, 'children'> & {