Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

vue 3 setup props typescript

import FlashInterface from '@/interfaces/FlashInterface';
import { PropType } from 'vue';

export default {
    props: {
        message: {
            type: Object as PropType<FlashInterface>,
            required: true
        }
    },
    setup(props, context) {
  		// Stuff
    }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vue #setup #props #typescript
ADD COMMENT
Topic
Name
3+3 =