Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

[bpk-component-flare] Migrate to TypeScript #4748

Closed

Description

Context

bpk-component-flare is a pure-JS package with 2 source files using prop-types.

Files to migrate (2)

File Type
src/BpkContentBubble.js Content bubble component — uses prop-types (including flareProps: PropTypes.object)
src/BpkFlareBar.js Flare bar component

Migration guidance

  1. Rename both .js → .tsx.
  2. Replace prop-types imports with TypeScript interfaces. Replace flareProps: PropTypes.object with a properly typed interface (e.g. flareProps?: React.HTMLAttributes<HTMLDivElement>).
  3. Migrate defaultProps to ES6 destructure defaults.
  4. Update test files (.test.js → .test.tsx) — replace snapshot tests with explicit expect assertions where possible.
  5. Update Storybook stories (.stories.js → .stories.tsx).
  6. Update index.js → index.ts and package entry points.
  7. Run npm run lint, npm run typecheck, and npm test.

References

Activity

  1. gert-janvercauteren commented on Jul 3, 2026

    @gert-janvercauteren
    ContributorAuthor

    This was generated by AI during triage.

    Triaged as enhancement / ready-for-agent. The issue is fully specified with clear file-by-file migration guidance — an AFK agent can complete this without human context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions