This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Since `JSON.parse` returns `any`, assert the expected shape: `const data = JSON.parse(str) as MyType`.
You've completed the free preview. Subscribe to unlock every lesson in every course.