Skip to content

[bpk-component-ticket] Migrate to TypeScript#4759

Merged
Gert-Jan Vercauteren (gert-janvercauteren) merged 7 commits into
mainfrom
ts-migration/bpk-component-ticket
Jul 2, 2026
Merged

[bpk-component-ticket] Migrate to TypeScript#4759
Gert-Jan Vercauteren (gert-janvercauteren) merged 7 commits into
mainfrom
ts-migration/bpk-component-ticket

Conversation

@gert-janvercauteren

Copy link
Copy Markdown
Contributor

Summary

  • Migrates bpk-component-ticket from JavaScript to TypeScript
  • Replaces prop-types with TypeScript interfaces
  • Converts defaultProps to ES6 destructure defaults
  • Removes Flow type annotations
  • Renames .js source/test/story files to .tsx/.ts

Closes #4746

Migrates bpk-component-ticket from JavaScript to TypeScript as described in #4746.

- 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 #4746
Copilot AI review requested due to automatic review settings June 26, 2026 09:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ticket away from Flow/PropTypes toward TypeScript-style typing while modernizing default props handling.

Changes:

  • Removes Flow and prop-types usage from bpk-component-ticket.
  • Introduces TypeScript type definitions for component/stories props.
  • Replaces defaultProps patterns with parameter destructuring defaults.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

File Description
packages/backpack-web/src/bpk-component-ticket/src/BpkTicket.stories.js Removes prop-types and adds TypeScript-style prop typing in stories.
packages/backpack-web/src/bpk-component-ticket/src/BpkTicket.js Replaces Flow/PropTypes with TypeScript types and destructured defaults; updates spread typing.
packages/backpack-web/src/bpk-component-ticket/index.js Removes Flow header comment; keeps export wiring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@skyscanner-backpack-bot

Copy link
Copy Markdown
Contributor

Visit https://backpack.github.io/storybook-prs/4759 to see this build running in a browser.

@skyscanner-backpack-bot

skyscanner-backpack-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Browser support

If this is a visual change, make sure you've tested it in multiple browsers.

Generated by 🚫 dangerJS against a26981c

@skyscanner-backpack-bot

Copy link
Copy Markdown
Contributor

Visit https://backpack.github.io/storybook-prs/4759 to see this build running in a browser.

@skyscanner-backpack-bot

Copy link
Copy Markdown
Contributor

Visit https://backpack.github.io/storybook-prs/4759 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) <noreply@anthropic.com>
@skyscanner-backpack-bot

Copy link
Copy Markdown
Contributor

Visit https://backpack.github.io/storybook-prs/4759 to see this build running in a browser.

…ex.ts

Must precede the 'from' clause to suppress the module-level import error.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@skyscanner-backpack-bot

Copy link
Copy Markdown
Contributor

Visit https://backpack.github.io/storybook-prs/4759 to see this build running in a browser.

@gert-janvercauteren Gert-Jan Vercauteren (gert-janvercauteren) merged commit dcef62d into main Jul 2, 2026
22 of 23 checks passed
@gert-janvercauteren Gert-Jan Vercauteren (gert-janvercauteren) deleted the ts-migration/bpk-component-ticket branch July 2, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Non breaking change ts-conversion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bpk-component-ticket] Migrate to TypeScript

3 participants