Skip to content

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

@flaming-cl

Description

@flaming-cl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: staleThis issue is untriaged and hasn't seen any activity in at least six months.S: triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions