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

[Feature Request] Expose type definitions for vuetify/lib/util/colorUtils.mjs #20670

Open
jmamakeesic opened this issue Nov 5, 2024 · 0 comments

Comments

@jmamakeesic
Copy link

Problem to solve

Importing functions from vuetify/lib/util/colorUtils.mjs results in the following ts error:
Could not find a declaration file for module 'vuetify/lib/util/colorUtils.mjs'. '.../node_modules/vuetify/lib/util/colorUtils.mjs' implicitly has an 'any' type.
This requires the creation of a custom type declaration file to resolve the ts error.

Proposed solution

Create a colorUtils.d.ts file and modify vuetify/packages/vuetify/package.json exports in one of the following ways:

  • replace "./util/colors": "./lib/util/colors.mjs" with "./util/*": "./lib/util/*.mjs" (like 'blueprints', 'adapters', and 'iconsets'); or
  • add "./util": "./lib/util/index.mjs" (like 'blueprints', 'components', 'directives', and 'locale'); or
  • add "./util/colorUtils": "./lib/util/colorUtils.mjs" (like 'colors')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant