Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. interface Animal {
  2.     speciesName: string
  3.     legCount: number,
  4. }
  5.  
  6. function serializeBasicAnimalData(a: Animal) {
  7.     // something
  8. }
  9.  
  10. serializeBasicAnimalData({
  11.     legCount: 65,
  12.     speciesName: "weird 65-legged animal",
  13.     specialPowers: "Devours plastic"
  14. })
  15.  
  16. var weirdAnimal = {
  17.     legCount: 65,
  18.     speciesName: "weird 65-legged animal",
  19.     specialPowers: "Devours plastic"
  20. };
  21. serializeBasicAnimalData(weirdAnimal);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement