Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript Rollout Tier 9 - Clockpicker #376

Merged
merged 5 commits into from
Jan 12, 2025

Conversation

kikuomax
Copy link
Collaborator

Related issues:

Proposed Changes

  • Migration of clockpicker
    • packages/buefy-next/rollup.config.mjs will likely cause a conflict after merging the other PRs in this tier.

Rewrites the clockpicker components in the `src/components/clockpicker`
folder in TypeScript.

In `ClockpickerFace.vue`:
- Introduces a new interface `FaceNumber` which represents the item type
  of the `faceNumbers` prop

Common changes:
- Registers other Buefy components with "direct" names instead of the
  `name` fields so that they are type-checked
Rewrites the specs for the clockpicker components in the
`src/components/clockpicker` in TypeScript.

All the changes are straightforward. Here are common changes:
- Imports the spec building blocks from the `vitest` package
- Replaces `jest` with `vi`

In the `__snapshots__` subfolder, replaces the spec snapshots produced
by Jest with those by Vitest:
- `Clockpicker.spec.(js → ts).snap`
- `ClockpickerFace.spec.(js → ts).snap`
`rollup.config.mjs` removes "clockpicker" from `JS_COMPONENTS`.
Rewrites the documentation for the clockpicker components in the
`src/pages/components/clockpicker` in TypeScript. All the changes are
straightforward.

Here is a TypeScript migration tip:
- Explicitly import and register components so that they are type
  checked. No type-checking is performed for globally registered
  components.
@kikuomax kikuomax requested a review from wesdevpro January 12, 2025 04:53
@kikuomax kikuomax merged commit 74775a8 into ntohq:dev Jan 12, 2025
18 checks passed
@kikuomax kikuomax deleted the ts-rollout-tier-9-clockpicker branch January 12, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants