We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 883b753 commit 4dc940eCopy full SHA for 4dc940e
src/guide/typescript-support.md
@@ -247,13 +247,17 @@ interface Book {
247
const Component = defineComponent({
248
props: {
249
name: String,
250
+ id: [Number, String],
251
success: { type: String },
252
callback: {
253
type: Function as PropType<() => void>
254
},
255
book: {
256
type: Object as PropType<Book>,
257
required: true
258
+ },
259
+ metadata: {
260
+ type: null // metadata is typed as any
261
}
262
263
})
0 commit comments