From 7ab399147c15abf232064ebf701552f07e00f638 Mon Sep 17 00:00:00 2001 From: Natalia Tepluhina Date: Tue, 28 Jun 2022 15:01:33 +0200 Subject: [PATCH] fix: added export as TS workaround Close #1678 --- src/api/sfc-script-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] }