Answers for "vue props only refers to a type but is being used as a value here"

1

vue props only refers to a type but is being used as a value here

<script lang="ts">
import FlashInterface from '@/interfaces/FlashInterface';
import { ref, PropType } from 'vue';
import { useStore } from 'vuex';

export default {
	props: {
		message: {
			type: Object as PropType<FlashInterface>,
			required: true
		}
	},
	setup(props): Record<string, unknown> {
            // Stuff
        }
};
Posted by: Guest on July-14-2021

Code answers related to "vue props only refers to a type but is being used as a value here"

Browse Popular Code Answers by Language