![](https://habrastorage.org/r/w1560/getpro/habr/upload_files/776/46d/8b6/77646d8b61e73c6f92649300cc136d16.png)
tl;dr; in the modern TS/JS landscape and overall tooling trends, better stick with static code generators, they are more performant in many ways, easier to integrate into apps, other tools and the multitude of modern JS runtimes. My new tool is as good as other static code generators, but it also produces strictly type safe code and unit tests for you.
This post goes into a rather deep comparison of my new tool Type Predicate Generator (from here just Generator) to other runtime type checkers, also giving a rather broad overview of the related topics. To get a sense of what it does try checking the Playground first.
If you're about to create your first tool for the TypeScript ecosystem the insights in this article will help you hit the ground running.