-
Notifications
You must be signed in to change notification settings - Fork 204
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
Type compatibility #739
Comments
Like this.
Is there any function/util to check that |
See #357. Basically no because the compiler API does not expose that yet. |
Just chiming in to the question since I was curious. @DanTsk What is your actual intention with that compatibility check? Types in TS are transparent by default and Microsoft unfortunately hasn't implemented a dedicated type Opaque<T> = T & { readonly __opaque: unique symbol }; |
Is there any way to check that two types are compatible? For example, when object literal compatible with interface definition in function argument.
The text was updated successfully, but these errors were encountered: