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

Slider prop step does not include null as possible type in TS #7673

Open
1 task done
Owen-Tsai opened this issue Jun 20, 2024 · 1 comment · May be fixed by #7675
Open
1 task done

Slider prop step does not include null as possible type in TS #7673

Owen-Tsai opened this issue Jun 20, 2024 · 1 comment · May be fixed by #7675

Comments

@Owen-Tsai
Copy link

Owen-Tsai commented Jun 20, 2024

  • I have searched the issues of this repository and believe (hopefully) that this is not a duplicate.

Version

4.2.3

Environment

Vue 3.4.29, AntD 4.2.3

Reproduction link

Not applicable

Steps to reproduce

<ASlider
  :step="null"
  ^^^^^ 不能将 null 分配给 number | undefined
/>

What is expected?

null should be included in step prop types.

What is actually happening?

TS server throws an error when you trying to assign null to step.

@webvs2
Copy link
Contributor

webvs2 commented Jun 21, 2024

The problem will be viewed

@webvs2 webvs2 linked a pull request Jun 21, 2024 that will close this issue
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 a pull request may close this issue.

2 participants