Skip to content

The vue-tsc does not generate a vue.d.ts file. #5081

Closed as not planned
Closed as not planned
@TianyuKang

Description

@TianyuKang

Vue - Official extension or vue-tsc version

2.1.10

VSCode version

1.91.1

Vue version

3.5.13

TypeScript version

5.4.5

System Info

windows

package.json dependencies

No response

Steps to reproduce

xx.ts

// type Option = { // label: string // value: any // } // export interface Option { // label: string // value: any // } interface Option { label: string value: any } export interface ComponentProps { option?: Option disable?: boolean } 

xx.vue

<template> <div></div> </template> <script setup lang="ts"> defineProps<ComponentProps >() </script> 

When using interface Option , the vue.d.ts file is not generated.

When using export interface Option and type Option, the vue.d.ts file can be generated.

What is expected?

There should be a vue.d.ts file.

What is actually happening?

vue.d.ts file is not generated.

Link to minimal reproduction

No response

Any additional comments?

No response

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