Skip to content

Scoped slots are not typed #4260

@or2e

Description

@or2e
Environment
  • Operating System: Linux
  • Node Version: v22.16.0
  • Nuxt Version: 3.17.4
  • CLI Version: 3.25.1
  • Nitro Version: 2.11.12
  • Package Manager: npm@11.4.1
  • Builder: -
  • User Config: modules, ssr, devtools, app, css, ui, runtimeConfig, alias, build, devServer, watch, future, experimental, compatibilityDate, nitro, vite, eslint, heyApi, i18n, icon, svgIconSprite
  • Runtime Modules: @nuxt/ui@3.1.2, @nuxt/test-utils/module@3.19.0, @nuxt/eslint@1.4.1, @pinia/nuxt@0.11.0, @vueuse/nuxt@13.2.0, @hey-api/nuxt@0.1.6, @nuxtjs/i18n@9.5.4, nuxt-svg-icon-sprite@2.0.0
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.1.2

Reproduction

https://www.npmjs.com/package/@nuxt/ui?activeTab=code - interface ModalSlots

Description

Greetings, thank you very much for the work you have done!

Using the example of the UModal component, you can see that props in scoped slots, such as #footer=“{ close }”, is untyped

Example

Image

in the bundle package it can be seen that there are indeed no valid types of props in ModalSlots - https://www.npmjs.com/package/@nuxt/ui?activeTab=code interface ModalSlots, although they are present in the source files - https://github.com/nuxt/ui/blob/v3/src/runtime/components/Modal.vue#L70

As I understand it, it is not only UModal, but all components with scoped slots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions