Skip to content

Commit bf46938

Browse files
committed
test: add and fix
1 parent d3e8df7 commit bf46938

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

test-workspace/tsc/passedFixtures/vue3/#4646/parent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import child from './child.vue';
55
import child2 from './child2.vue';
66
77
const msg = ref<string | null>('test');
8-
const other = ref<string | null | undefined>('test2');
8+
const other = ref<string | null>('test2');
99
</script>
1010

1111
<template>

test-workspace/tsc/passedFixtures/vue3/#4822/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineComponent({
1111
</script>
1212

1313
<script setup lang="ts">
14-
let foo!: number | undefined;
14+
let foo!: number;
1515
</script>
1616

1717
<template>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<script setup lang="ts">
2+
defineModel<string>();
3+
</script>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- @strictVModel true -->
2+
3+
<script setup lang="ts">
4+
import Comp from './comp.vue';
5+
6+
let foo!: string;
7+
</script>
8+
9+
<template>
10+
<!-- @vue-expect-error -->
11+
<Comp v-model="foo" />
12+
</template>

0 commit comments

Comments
 (0)