You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
[bpk-component-phone-input] Migrate to TypeScript #4747
bpk-component-phone-input is partially migrated — it has 2 TSX files but the main component is still JS.
Files to migrate (1)
File
Type
src/BpkPhoneInput.js
Main component — uses prop-types (including wrapperProps: PropTypes.object)
Migration guidance
RenameBpkPhoneInput.js → BpkPhoneInput.tsx.
Replace prop-types import with a TypeScript interface for the component props. Replace wrapperProps: PropTypes.object with a properly typed interface (e.g. wrapperProps?: React.HTMLAttributes<HTMLDivElement>).
Migrate defaultProps to ES6 destructure defaults.
Update test files — there are 3 test files (BpkPhoneInput-test.js, form-test.js, accessibility-test.js) that use a shared defaultProps const. Convert these to .test.tsx / .tsx and type the shared props object.
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.
Activity
gert-janvercauteren commentedon Jul 3, 2026
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.
[bpk-component-phone-input] Migrate to TypeScript (Skyscanner#4760)