Skip to content

ComponentCustomProps is erased in distributed component types #8376

@KaelWD

Description

@KaelWD

Vue version

3.3.2

Link to minimal reproduction

vuetifyjs/vuetify#16190

Steps to reproduce

Build a library with

DefineComponent<MyProps, {}, {}, {}, {}, {}, {}, {}, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps>

What is expected?

The emitted type includes

$props: MyProps & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps

Consumers of the library can use module augmentation to set ComponentCustomProps

What is actually happening?

Prettify added in 4c9bfd2 flattens it to

$props: { foo?: string, bar?: string }

Consumers cannot add anything with ComponentCustomProps

System Info

No response

Any additional comments?

vuetifyjs/vuetify#16190 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.regressionscope: types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy