diff --git a/src/guide/typescript-support.md b/src/guide/typescript-support.md index 53e2593f5c..7180ee6c4f 100644 --- a/src/guide/typescript-support.md +++ b/src/guide/typescript-support.md @@ -247,6 +247,7 @@ interface Book { const Component = defineComponent({ props: { name: String, + id: [Number, String], success: { type: String }, callback: { type: Function as PropType<() => void> @@ -254,6 +255,9 @@ const Component = defineComponent({ book: { type: Object as PropType, required: true + }, + metadata: { + type: null // metadata is typed as any } } })