`tsnapi` - a snapshot testing utility for the public API for library maintainers. Snapshots for both JavaScript and TypeScript declarations. It would help prevent unintended breaking changes on public API signatures.
Thanks @sxzz.dev for the initial idea and implementation.
github.com/antfu/tsnapi
Library public API snapshot testing for runtime exports and type declarations. - antfu/tsnapi