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: accept Enum as plain object in template #35

Closed
@TrungRueta

Description

@TrungRueta

Hi!

version: plugin v0.5.6 - nuxt 2.15.8

When use typescript in project i usually use enum as safe way to store config values. With composition api setup function we can do like this without issue:

image
image

When use script setup , editor still accept write enum and pass to template, but in runtime it not actually foward enum to template :

image
image

can we update this part to accept enum as normal static plain object in template.

Thank you!

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