Created
December 16, 2021 14:51
-
-
Save zaru/6b08344d60160eb07ad69700cd8a8c45 to your computer and use it in GitHub Desktop.
withDefaults error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup lang="ts"> | |
interface ISampleProps { | |
foo: { | |
bar: string | |
} | |
} | |
const defaultValue: ISampleProps = { | |
foo: { | |
bar: 'bar' | |
} | |
}; | |
const props = withDefaults(defineProps<ISampleProps>(), defaultValue); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment