SHARE
TWEET

Untitled

a guest Mar 21st, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function buildMyObject () {
  2.     const c = "a string"
  3.     return {
  4.         a : 6,
  5.         b  : c
  6.     }
  7. }
  8.      
  9. function useMyObject(myObject : buildMyObject*) {
  10.     console.log(myObject.a)
  11. }
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
 
Top