Skip to content

Commit

Permalink
fix: added export as TS workaround
Browse files Browse the repository at this point in the history
Close #1678
  • Loading branch information
NataliaTepluhina committed Jun 28, 2022
1 parent e653103 commit 7ab3991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/sfc-script-setup.md
Expand Up @@ -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[]
}
Expand Down

1 comment on commit 7ab3991

@dargmuesli
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @NataliaTepluhina, could you please advise on this PR related to you change here: #2532? 🙏 Thank you!

Please sign in to comment.