SHARE
TWEET

Untitled

a guest Jun 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type A = {
  2.     prop1: string,
  3.     prop2: {
  4.         prop3: string
  5.     }
  6. }
  7.      
  8. function isA(obj:any): boolean {
  9.     // What should be here?
  10. }
  11.      
  12. {
  13.  prop1: "Hello",
  14.  prop2: {
  15.     prop3: "World"
  16.  }
  17. }
  18.      
  19. {
  20.      prop1: "Hello",
  21.      prop2: {
  22.         prop3: "World"
  23.      },
  24.      moreProps: "I don't care about"
  25. }
  26.      
  27. {
  28.      foo: "Hello",
  29.      bar: {
  30.         prop3: "World"
  31.      }
  32. }
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