Skip to content

Commit bdc74c0

Browse files
authored
Update README.md
1 parent d9b786c commit bdc74c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ interface Hero {
246246
powers: string[];
247247
universe: ComicUniverse;
248248
}
249+
let person: Hero = {
250+
name: 'Peter Parker',
251+
age: 20,
252+
activeAvenger: true,
253+
powers: ['wall-crawl', 'spider-sense']
254+
universe: 'Marvel'
255+
}
249256
```
250257
And just like that, we’ve now combined our interface and type together!
251258

0 commit comments

Comments
 (0)