Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议regular添加prop types检查 #242

Open
xuchaoying opened this issue Jan 16, 2019 · 4 comments
Open

建议regular添加prop types检查 #242

xuchaoying opened this issue Jan 16, 2019 · 4 comments

Comments

@xuchaoying
Copy link

可以在非生产环境对组件data下面的参数进行一下类型检查,类似vue的props、react的prop-types

@Qquanwei
Copy link

趁此机会可以增加regular属性readonly限制。

@XGHeaven
Copy link

其实直接添加 TS 支持就足够了,不是很喜欢 props-types 这种运行时检查的能力。

感觉支持 TS 还不如直接用 TS 重写,搞个 regular2,手动滑稽 👻

@Qquanwei
Copy link

用js的项目也有很多把,而且预估未来很长一段时间都是以js为主。

@XGHeaven
Copy link

XGHeaven commented Jan 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants