Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

typescript: defineProps and defineEmits not co-op in type checking #31

Closed
@TrungRueta

Description

@TrungRueta

Hi!

I'm using plugin v0.5.4 in Nuxt. with simple component use both defineProps and defineEmits i see type checking report error:

normal, when only use defineProps component checking ok:

without defineEmits

when add defineEmis, all props reference in template lost:

with defineEmits

This error only happend with type checking, runtime still work.

Thankyou!

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