Repository navigation
[bpk-component-modal] Migrate customPropTypes to TypeScript - #4763
Conversation
Migrates bpk-component-modal from JavaScript to TypeScript as described in #4750. - 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 #4750
|
Visit https://backpack.github.io/storybook-prs/4763 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-modal away from Flow/prop-types toward TypeScript-based typing, aligning modal prop validation with the TS codebase.
Changes:
- Replaces Flow annotations with TypeScript
typedefinitions for custom validators. - Introduces
ValidatorProps/Validatortypes and applies them totitlePropTypeandonClosePropType.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Visit https://backpack.github.io/storybook-prs/4763 to see this build running in a browser. |
…suppressions.md Replace @ts-ignore with @ts-expect-error for untyped imports. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
|
Visit https://backpack.github.io/storybook-prs/4763 to see this build running in a browser. |
…x.ts Must precede the 'from' clause to suppress the module-level import error. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
|
Visit https://backpack.github.io/storybook-prs/4763 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/4763 to see this build running in a browser. |
Rename customPropTypes-test.js → customPropTypes-test.ts and remove the Flow annotation, completing the TS migration for this file.
|
Visit https://backpack.github.io/storybook-prs/4763 to see this build running in a browser. |
Summary
bpk-component-modalfrom JavaScript to TypeScriptprop-typeswith TypeScript interfacesdefaultPropsto ES6 destructure defaults.jssource/test/story files to.tsx/.tsCloses #4750