Skip to content

Instantly share code, notes, and snippets.

@Jokcy
Last active August 11, 2020 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jokcy/505b9cfbd9a06ed635ccb56eeecc5f03 to your computer and use it in GitHub Desktop.
Save Jokcy/505b9cfbd9a06ed635ccb56eeecc5f03 to your computer and use it in GitHub Desktop.
props defination in ts
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