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

类型完善计划 #25

Open
zhmushan opened this issue Aug 5, 2020 · 1 comment
Open

类型完善计划 #25

zhmushan opened this issue Aug 5, 2020 · 1 comment

Comments

@zhmushan
Copy link
Collaborator

zhmushan commented Aug 5, 2020

第一部分

  • 忽略 proxy.ts 文件中的类型, 将它当作一个 js 文件
  • 尽可能不使用可选类型, 这样做可以减轻负担, 将开发时体验移到下个阶段开始做
  • 优先规定函数输入输出类型, 放弃内部
  • 将复杂类型统一抽象
  • 减少花里胡哨的编程方式, 尽量不要使用高阶函数, 过度重载, 两层以上的箭头函数, 此处必须 @yisar

第二部分

  • 增强开发时体验, 完成第一部分后再补
@yisar
Copy link
Collaborator

yisar commented Aug 5, 2020

get✅ (俺好像木有使用很多高阶函数和两层箭头函数呀)

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

No branches or pull requests

2 participants