[bpk-component-scrollable-calendar] Migrate remaining JS file to TypeScript#4765
Conversation
…Script Migrates bpk-component-scrollable-calendar from JavaScript to TypeScript as described in #4752. - Replaced prop-types with TypeScript interfaces - Converted defaultProps to ES6 destructure defaults - Renamed .js source/test/story files to .tsx/.ts - Removed Flow type annotations - Preserved Apache 2.0 license headers Closes #4752
|
Visit https://backpack.github.io/storybook-prs/4765 to see this build running in a browser. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.
Migrates bpk-component-scrollable-calendar remaining JavaScript artifacts toward TypeScript by adding type annotations and replacing runtime prop validation with static typing.
Changes:
- Adds TypeScript type annotations to date formatter helpers.
- Introduces
WeekDaytyping for exported weekday arrays.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Visit https://backpack.github.io/storybook-prs/4765 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/4765 to see this build running in a browser. |
Summary
bpk-component-scrollable-calendarfrom JavaScript to TypeScriptprop-typeswith TypeScript interfacesdefaultPropsto ES6 destructure defaults.jssource/test/story files to.tsx/.tsCloses #4752