Created
August 6, 2019 21:35
-
-
Save Jexordexan/8273f4edf0e4bce347ffd00590ee55ef to your computer and use it in GitHub Desktop.
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
export default createComponent({ | |
name: "UserAlerts", | |
props: { | |
user: Object as any as User, | |
alerts: Array as any as Alert[], | |
}, | |
setup(props) { | |
// Typescript infers typeof 'props' to be: | |
// { | |
// user: User, | |
// alerts: Alert[], | |
// } | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment