Skip to content

script-setup use defineExpose, component should have typescript declaration #4397

@liuzw2579

Description

@liuzw2579

What problem does this feature solve?

when my vue component 'MyComponent' use eg: defineExpose({ a: 1 }), component instance can use instanceRef.value.a, but component typescript declaration not have field a when via InstanceType<typeof MyComponent>

What does the proposed API look like?

nothings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions