From ad9487d874262d3609381ef3c98a076ec193fe1d Mon Sep 17 00:00:00 2001 From: KumJungMin <37934668+KumJungMin@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:42:35 +0900 Subject: [PATCH] Update props.md Add Error Type on defineProps docs - regarding code: https://github.com/vuejs/core/blob/v3.3.8/packages/compiler-sfc/__tests__/compileScript/__snapshots__/defineProps.spec.ts.snap --- src/guide/components/props.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guide/components/props.md b/src/guide/components/props.md index e29a4e6a0c..e1163abd2f 100644 --- a/src/guide/components/props.md +++ b/src/guide/components/props.md @@ -519,6 +519,7 @@ The `type` can be one of the following native constructors: - `Date` - `Function` - `Symbol` +- `Error` In addition, `type` can also be a custom class or constructor function and the assertion will be made with an `instanceof` check. For example, given the following class: