DEV Community

Discussion on: Strongly Typed JSON in TypeScript

Collapse
 
marceloarraes profile image
Marcelo Arraes Teixeira

"export type PersonalInfo = typeof data;"
Didn't understand this line. I couldn't find anywhere the PersonalInfo was used. Would you be kind to explain why to make this export type PersonalInfo?

Collapse
 
nickytonline profile image
Nick Taylor

Ahh, I don’t use it anywhere in the sample project. I was just mentioning that if you wanted to use the type for the exported JSON.