You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use this library to do local type checks? I don't want to type check my whole app at runtime (I trust TypeScript to do that at compile time), but I'd like to type check individual variables at certain places (mainly API boundaries). So for example this:
verify<MyType>(obj); // throws if obj doesn't conform to interface MyType
This is obviously supported by this tool, because it does it behind the scenes, but I wonder if this API is exposed?
The text was updated successfully, but these errors were encountered:
Currently there is no such option to gradually opt-in for type checks, however this is something I was considering. If it happens that I can invest time again in this project, I will definitely keep this in mind.
Is it possible to use this library to do local type checks? I don't want to type check my whole app at runtime (I trust TypeScript to do that at compile time), but I'd like to type check individual variables at certain places (mainly API boundaries). So for example this:
This is obviously supported by this tool, because it does it behind the scenes, but I wonder if this API is exposed?
The text was updated successfully, but these errors were encountered: