Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Animal {
- speciesName: string
- legCount: number,
- }
- function serializeBasicAnimalData(a: Animal) {
- // something
- }
- serializeBasicAnimalData({
- legCount: 65,
- speciesName: "weird 65-legged animal",
- specialPowers: "Devours plastic"
- })
- var weirdAnimal = {
- legCount: 65,
- speciesName: "weird 65-legged animal",
- specialPowers: "Devours plastic"
- };
- serializeBasicAnimalData(weirdAnimal);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement