-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Type Run time type checking issue not working #27
Comments
Types constructed with Lines 135 to 144 in 963e9d8
You should see warnings that reflections could not be found when generating the code. The runtime type will fall back to |
Is there a feature statement written somewhere I can try to contribute. |
There is no documentation around contributing, happy to answer questions though :) However, please note that this package is a POC and not really intended to be used in production environments, mainly due to the impact on bundle size and execution time. Unfortunately I haven't had time to spend more time on the project to develop it further. |
Cool I'll check out your package to understand better. Then will ask further questions. |
I have a use case where I want to ensure my custom types are respected during run time as well. I would have written custom checks myself but Typescript's String Literal Types are not available during run time.
I am posting my code sample and generated code with ts-runtime library -
My Code -
Generated Code
analyticsEvent is not referred in the generated code. What do I have to make it work ?
The text was updated successfully, but these errors were encountered: