Converting a JS library to TypeScript: Part 3
If you missed the prior videos, you can find them here: Part 1 and Part 2.
Today we're implementing more of test-data-bot's API in TypeScript and diving into using 3rd party libraries, specifically the FakerJS library. We'll see how best to think about and model types by recognising a situation where our first typed approach has failed to provide clarity, and see how time thinking about remodelling types really pays off.
You can watch it on YouTube, either by clicking here to view it directly or using the embedded player below. I filmed the video in 1080p so it should be crystal clear 👌.