alibaba / x-render

🚴‍♀️ 阿里 - 很易用的中后台「表单 / 表格 / 图表」解决方案

Home Page:https://xrender.fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS2339: Property validateMessages does not exist on type

finnMasurat opened this issue · comments

1.依赖仓库的版本(Dependencies versions)

  • form-render:2.3.8

2.问题描述(Bug description)
Hello everyone,
this package is part of pdfme, which i am trying to use in my application.
Typscript is throwing an error due to a possible undefined property.
Place: form-render/lib/types.d.ts:290:
validateMessages?: ConfigProviderProps['form']['validateMessages'];

I can see that validateMessages is defined as following inside the ConfigProviderProps:
form?: ComponentStyleConfig & { validateMessages?: ValidateMessages; requiredMark?: RequiredMark; colon?: boolean; scrollToFirstError?: Options | boolean; };
The error i am receiving is the following:
TS2339: Property validateMessages does not exist on type
FRProps.validateMessages?: any

Thank you very much for your help!

已修复