Skip to content

Types are removed from JSDoc in .vue when there it has no lang="ts" #980

@ShGKme

Description

@ShGKme
<script>
/**
 * @param foo {string} - Foo
 */
function bar(foo) {
  // ...
}
</script>

Got auto fixed to

<script>
/**
 * @param foo - Foo
 */
function bar(foo) {
  // ...
}
</script>

Although it was a JS component, not a TS component like

<script lang="ts">
/**
 * @param foo - Foo
 */
function bar(foo: string) {
  // ...
}
</script>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions