Skip to content

typescript #31

@ahoyahoy

Description

@ahoyahoy

Hi, I must have misunderstood something
but this doesn't work for me (in playground)
types and autocompletion and syntax highlighting for const x are wrong (both in script and template)

<script lang="ts" setup>
import { ref } from 'vue'

export interface XX {
    a: string
}

const msg = ref('hello world')
const x = ref<XX>({ a: 'X' } as XX)
</script>

<template>
    <div :value="x.a">{{ x.a }}</div>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions