Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TianyuKang opened this issue Dec 24, 2024 · 1 comment
Open

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

TianyuKang opened this issue Dec 24, 2024 · 1 comment

Comments

@TianyuKang
Copy link

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

@KazariEX
Copy link
Collaborator

See #1232 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants