Skip to content

Conversation

@johnsoncodehk
Copy link
Member

For the following SFC:

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

export default defineComponent({
  props: {
    foo: {
		type: String,
	},
  }
})
</script>

Before virtual code:

/// <reference types="../node_modules/.vue-global-types/vue_3.5_0.d.ts" />

import { defineComponent } from 'vue'

export default {} as typeof __VLS_export;
const __VLS_self = (await import('vue')).defineComponent({
  props: {
    foo: {
		type: String,
	},
  }
});
const __VLS_ctx = {} as InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
type __VLS_LocalComponents = typeof __VLS_ctx;
let ___VLS_components!: __VLS_LocalComponents & __VLS_GlobalComponents;
type __VLS_LocalDirectives = typeof __VLS_ctx;
let ___VLS_directives!: __VLS_LocalDirectives & __VLS_GlobalDirectives;
const __VLS_export = defineComponent({
  props: {
    foo: {
		type: String,
	},
  }
})

After virtual code:

/// <reference types="../node_modules/.vue-global-types/vue_3.5_0.d.ts" />

import { defineComponent } from 'vue'

export default {} as typeof __VLS_export;
const __VLS_ctx = {} as InstanceType<__VLS_PickNotAny<typeof __VLS_export, new () => {}>>;
type __VLS_LocalComponents = typeof __VLS_ctx;
let ___VLS_components!: __VLS_LocalComponents & __VLS_GlobalComponents;
type __VLS_LocalDirectives = typeof __VLS_ctx;
let ___VLS_directives!: __VLS_LocalDirectives & __VLS_GlobalDirectives;
const __VLS_export = defineComponent({
  props: {
    foo: {
		type: String,
	},
  }
})

@johnsoncodehk johnsoncodehk merged commit b071638 into master Dec 9, 2025
13 checks passed
@johnsoncodehk johnsoncodehk deleted the dedupe-options-generate branch December 9, 2025 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants