Got tired of tsc taking forever to type check my code so I made a Typescript type checker in Rust for fun For a small Typescript file it's 500x faster than tsc taking ~0.002s vs ~1.3s (using SWC for compilation). It supports only a small subset of Typescript (for now).
It's using SWC to parse Typescript, then it type checks the returned AST. Right now it supports a subset of TS's type system with the end goal of reaching feature parity with Typescript and possibly making an LSP server that goes brrr
This is the sample.ts, basically everything is supported except for complex types (generics, conditionals, recursive) right now
I'm aware that SWC is making a type checker, but it still isn't clear if it was going to be open source or commercially licensed, so I decided to make my own for personal use and fun
@zack_overflow Did you see github.com/swc-project/sw…? Not complaining, not there aren't enough eyes in this space yet!