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

[Bug Report][3.3.12] Not able to declare types for components built on VCombobox #18126

Closed
flaming-cl opened this issue Aug 23, 2023 · 0 comments
Labels
S: stale This issue is untriaged and hasn't seen any activity in at least six months. S: triage

Comments

@flaming-cl
Copy link

flaming-cl commented Aug 23, 2023

Environment

Vuetify Version: 3.3.12
Vue Version: 3.3.4
Browsers: Chrome 116.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

  1. Create a component with VCombobox and <script setup>
  2. Create types for this component with "type-create": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json",

When building the component, we see this error:
Screenshot

This may because VCombobox is using a private type ListItem.
When add export to interface ListItem, this error is gone.

related reading:
vuejs/language-tools#1232

Expected Behavior

Export type ListItem in generated index.d.mts

Not showing error: Default export of the module has or is using private name 'ListItem'. for VCombobox

Actual Behavior

Showing error default export using private name.
The actual code of list-item composable is exported ListItem, but generated type of ListItem in vuetify.d.ts (and index.d.mts of VList, VCombobox) is private.
Screenshot2

@flaming-cl flaming-cl reopened this Aug 23, 2023
@github-actions github-actions bot added the S: stale This issue is untriaged and hasn't seen any activity in at least six months. label Feb 29, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: stale This issue is untriaged and hasn't seen any activity in at least six months. S: triage
Projects
None yet
Development

No branches or pull requests

1 participant