Last active
August 11, 2020 05:52
-
-
Save Jokcy/505b9cfbd9a06ed635ccb56eeecc5f03 to your computer and use it in GitHub Desktop.
props defination in ts
This file contains 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
const props: WhatType = { | |
a: { | |
type: Object as PropType<MyInterface> | |
} | |
} | |
const CompA = defineComponent({ | |
props: props, | |
setup(props) { | |
return () => <div>{props.a.name}</div> | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment