DEV Community

Discussion on: Strongly Typed JSON in TypeScript

Collapse
 
nickytonline profile image
Nick Taylor • Edited

Yes, it works with arrays. If sone entries in the array were missing attributes, they would get typed as optional and depending on what you do, maybe even create union types.