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

fix(component): use both type and optionalTypes to infer property type #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yangmingshan
Copy link
Contributor

@yangmingshan yangmingshan commented Jan 16, 2020

Fixes #97

考虑到 optionalTypes,observer 函数的参数类型可能很难推断出来,所以我将其设置为了 any。如果你有可行方案就拒绝这个 PR 吧。

另外,ShortPropertyPropertyType 是重复的,所以我删除了 ShortProperty,全部使用 PropertyType

@SgLy
Copy link
Contributor

SgLy commented Jan 19, 2020

我挣扎一下有没有更好的方案,没有的话我就回来 merge 这个 PR orz

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

Successfully merging this pull request may close these issues.

组件 properties 在指定 optionalTypes 时类型推导不完整
2 participants