SHARE
TWEET

Untitled

a guest Aug 18th, 2019 64 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top