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 16 - docs bulmacssvars #404

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

kikuomax
Copy link
Collaborator

Related issues:

Proposed Changes

  • Migration of packages/docs/src/pages/extensions/bulmacssvars

Rewrites the example in the `src/pages/extensions/bulmacssvars` folder
in TypeScript.

In `examples/ExFormat.vue`:
- I decided to exempt `bulma-css-vars` from type-checking because I got
  the following error due to a problem in the `package.json` when I ran
  `npm run type-check`:
  > Could not find a declaration file for module 'bulma-css-vars'.
    '../bulma-css-vars/dist/esm/index.js' implicitly has an 'any' type.
    There are types at '../bulma-css-vars/dist/types/index.d.ts', but
    this result could not be resolved when respecting package.json
    "exports". The 'bulma-css-vars' library may need to update its
    package.json or typings.

In `BulmaCssVars.vue`:
- Wraps `ExFormat` with `shallowRef` to resolve the warning about
  making a component reactive

A tip for TypeScript migration:
- Explicitly import and register Buefy components so that they are
  type-checked. Note that no type-checking is performed for globally
  registered components.
@kikuomax kikuomax requested a review from wesdevpro January 17, 2025 00:43
@kikuomax kikuomax merged commit fef020e into ntohq:dev Jan 17, 2025
18 checks passed
@kikuomax kikuomax deleted the ts-rollout-tier-16-docs-bulma-css-vars branch January 17, 2025 09:56
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