<script lang="ts" setup>
interface Props {
bigArray: string[];
}
***const props = withDefaults(defineProps<Props>(), {
bigArray:[],
}*** <---- Here is the error, setting props
const bigArray = ref(props.BigArray);
</script>
ITsInterface.ts
BigArray?: string[] | null;
Looking for the proper way to set up an empty array as a prop in this scenario:
- Vue.js3
- composition API
- TypeScript
- setup in script tag