Skip to content

Commit dd4ff75

Browse files
committed
Revert "add an any and a union type example for prop annotation"
This reverts commit f2210bf
1 parent f2210bf commit dd4ff75

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/guide/typescript-support.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,13 @@ interface Book {
247247
const Component = defineComponent({
248248
props: {
249249
name: String,
250-
id: [Number, String],
251250
success: { type: String },
252251
callback: {
253252
type: Function as PropType<() => void>
254253
},
255254
book: {
256255
type: Object as PropType<Book>,
257256
required: true
258-
},
259-
metadata: {
260-
type: null // metadata is typed as any
261257
}
262258
}
263259
})

0 commit comments

Comments
 (0)