typescript-needs-types
typescript-needs-types copied to clipboard
Yet another new library: rutypi
Hey, I just wanted to give you a heads up that there is a new runtime type info/validation library: https://github.com/WolverinDEV/rutypi
Rutypi is a library which allows you to automatically export type information for runtime usage.
Additionally, it provides a mechanism to check if an object matches it's declared type out of the box.
It currently works with webpack 5 (single compile and watch mode!) and ts-loader for TypeScript version 4.
The aim is to provide most possible accurate type information to validate objects against their type declaration (type literals, primitives, interfaces, and enums) without a need for large overhead due to typing information. Type information will only emit if actually needed. On top comes that duplicates (e. g. a globally available/exported type used multiple times) will only be emitted once to ensure minimal bundle size.
Disclaimer: I'm the author of that library.