With TypeScript, type checker helps catching lots of mistake. However, when using using Hermes in JS codebase, I think it will be valuable to provide some runtime check for correct type for cache config.
I think we should start with explicit checks on the public surface area - the downside of reflect-metadata is that it only exposes the raw JS types (like Object, or Function, but nothing more nuanced than that)
With TypeScript, type checker helps catching lots of mistake. However, when using using Hermes in JS codebase, I think it will be valuable to provide some runtime check for correct type for cache config.
One possible option to do so (https://github.com/rbuckton/reflect-metadata)