Skip to content

Commit b17ef78

Browse files
authored
test: fix incorrect default value (#4934)
1 parent 04a9f0a commit b17ef78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-workspace/tsc/passedFixtures/vue3/defineProp_A/script-setup.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bar = defineProp<string>('bar', {
1212
});
1313
const baz = defineProp<string | number>('baz', {
1414
required: true,
15-
default: () => [1, 2, 3],
15+
default: () => 1,
1616
});
1717
defineProp<Qux>('qux')
1818
defineProp<boolean>('quux', { default: true })

0 commit comments

Comments
 (0)