Guest User

Untitled

a guest
Aug 18th, 2019
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface Props {
  2. user: api.User
  3. alerts: api.Alert[]
  4. }
  5.  
  6. export default createComponent({
  7. name: "UserAlerts",
  8. props: {
  9. user: Object,
  10. alerts: Array,
  11. } as any as Props,
  12. setup(props) {
  13. // Typescript infers typeof 'props' to be `Props`
  14. },
  15. })
RAW Paste Data