react-component / picker

📅 All Date Pickers you need.
https://picker.react-component.now.sh/
MIT License
275 stars 315 forks source link

Fix TypeScript error in SinglePickerPanelProps interface #765

Open chaiwei opened 7 months ago

chaiwei commented 7 months ago

Description:

This pull request addresses the TypeScript error reported in issue #764.

Changes Made:

Details:

The TypeScript error occurred due to an incorrect extension of the SinglePickerPanelProps interface, specifically relating to the defaultValue property.

To resolve this issue, the interface extension was replaced with a type intersection, aligning the SinglePickerPanelProps interface with the expected types in the BasePickerPanelProps interface.

Additional Notes: Tested locally to ensure that the build process completes successfully without encountering TypeScript errors.

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
picker ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 6:30am
codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.58%. Comparing base (73032a3) to head (bb00992). Report is 69 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #765 +/- ## ======================================= Coverage 98.58% 98.58% ======================================= Files 63 63 Lines 2538 2538 Branches 672 672 ======================================= Hits 2502 2502 Misses 33 33 Partials 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.