2022-11-28
|~1 min read
|158 words
I’ve written about type narrowing before in the context of type guards here and here. The addition of tiny-invariant to the process is to…
2022-11-28
|~2 min read
|395 words
I’ve written about type guards a few times before - here and here - but I thought I’d collect a few different ways I’ve found to use type…
2022-11-28
|~5 min read
|914 words
I was discussing a refactor for some types recently with a colleague when he suggested I use a assertion. There are several good articles…