Skip to content

Typescript experimental declarations feature #6368

Closed
@jiayexie

Description

@jiayexie

What problem does this feature solve?

I would love to have Typescript recognize the fields defined in props and data directly, as demoed in this starter project: https://github.com/Microsoft/TypeScript-Vue-Starter. This solves the headache of declaring an interface for every component, and changing the interface whenever I change something in the component.

However, it uses a fork of Vue that I cannot directly leverage in my production code because it's far behind the latest release. Can I have a timeline when is this feature going to be released?

What does the proposed API look like?

This looks like an experimental feature already implemented, and I'd like to know when it is going to be merged and released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions