Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
RuleType "type" doesn't include "array" #25078
Comments
|
Hello @gwuah. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch (feature branch for the new feature, master for bugfix and other changes), fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. Appreciate it advance and we are looking forward to your contribution! 你好 @gwuah, 我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支(新特性发到 feature 分支,其他发到 master 分支),务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献! |
|
@afc163 Hey so I was just wanted to be sure, this isn't an issue from antd right? |
|
Right, you can send PR to https://github.com/react-component/field-form |
|
sorry, @gwuah 。 https://github.com/react-component/field-form/blob/master/src/interface.ts#L70。 You can provide a demo? |



Reproduction link
Steps to reproduce
Project Too Large to isolate
What is expected?
Setting rule of type "array" for tag select component should work successfully. (Typescript project)
What is actually happening?
Setting property rule with value "array" for tag select components fails because it's not declared in the
RuleTypetype.Possible values of rule as defined by

async-validatorincludes the "array" prop as expected.But in

rc-field-form/lib/interface.d.ts, RuleType doesn't include "array"