Skip to content

Commit

Permalink
test: add and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Mar 2, 2025
1 parent d3e8df7 commit bf46938
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-workspace/tsc/passedFixtures/vue3/#4646/parent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import child from './child.vue';
import child2 from './child2.vue';
const msg = ref<string | null>('test');
const other = ref<string | null | undefined>('test2');
const other = ref<string | null>('test2');
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion test-workspace/tsc/passedFixtures/vue3/#4822/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineComponent({
</script>

<script setup lang="ts">
let foo!: number | undefined;
let foo!: number;
</script>

<template>
Expand Down
3 changes: 3 additions & 0 deletions test-workspace/tsc/passedFixtures/vue3/#5227/comp.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script setup lang="ts">
defineModel<string>();
</script>
12 changes: 12 additions & 0 deletions test-workspace/tsc/passedFixtures/vue3/#5227/main.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- @strictVModel true -->

<script setup lang="ts">
import Comp from './comp.vue';

let foo!: string;
</script>

<template>
<!-- @vue-expect-error -->
<Comp v-model="foo" />
</template>

0 comments on commit bf46938

Please sign in to comment.