RFLCT brings decorator-free runtime type metadata to TypeScript 7 at build time
InversifyJS creator has released RFLCT, an ahead-of-time reflect metadata injector designed for TypeScript 7 that eliminates the need for legacy experimentalDecorators and emitDecoratorMetadata compiler flags. The tool injects design:symbols and design:arguments directly during the build step, converting TypeScript interfaces into stable global Symbols without requiring any decorators in source code. RFLCT integrates with major build tools including Vite, Rollup, webpack, and esbuild via unplugin, and also supports standalone TypeScript 7 projects through a built-in CLI. Beyond powering the next generation of InversifyJS, the library opens possibilities for custom DI containers, object hydration, RPC frameworks, and runtime validation. By standardising how types map to memory at build time, RFLCT aims to provide a reliable, ecosystem-wide primitive for runtime type metadata in modern TypeScript projects.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in