diff --git a/src/api/sfc-script-setup.md b/src/api/sfc-script-setup.md index 56f66843f5..e44cb45fe3 100644 --- a/src/api/sfc-script-setup.md +++ b/src/api/sfc-script-setup.md @@ -295,7 +295,7 @@ const emit = defineEmits<{ One drawback of the type-only `defineProps` declaration is that it doesn't have a way to provide default values for the props. To resolve this problem, a `withDefaults` compiler macro is also provided: ```ts -interface Props { +export interface Props { msg?: string labels?: string[] }