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(types): extract the correct props type for the DateConstructor #2676

Merged
merged 2 commits into from
Feb 5, 2021
Merged

fix(types): extract the correct props type for the DateConstructor #2676

merged 2 commits into from
Feb 5, 2021

Conversation

HcySunYang
Copy link
Member

close: #2668

The reason is in the definition of DateConstructor:

interface DateConstructor {
    ...
    (): string;
    ...
}

For simplicity, we can just create a new judgment branch to deal with it.

@posva
Copy link
Member

posva commented Nov 27, 2020

I think we should add a test in the test-dts folder

@HcySunYang
Copy link
Member Author

yeah added

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.

Setting "Date" type as props will infer to string in the setup function
4 participants