-
Notifications
You must be signed in to change notification settings - Fork 176
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
[TS2.2.x] Operator '!==' cannot be applied to types #371
Comments
I think that there's some logic problem in that code anyway ...
so, if the value is not an object and not an array, hit the first test In fact, if there is an unexpected type, it's actually caught by the first test |
if you replace the
|
That works, can you make a pull request, or should I? |
I will be integrating this fix as soon as the pull request points to development. Thanks for reporting and also for fixing the issue. |
…ray' type in javascript. And value should not be null. cause typeof null === 'object'. Fixes for mean-expert-official#371
@Wavfact your error seems to come from one of these files, which are not part of the SDK:
|
I downgraded to 2.1.6 as you suggested above and the issue was resolved.. In those files, there was a typescript error using |
If the issue is indeed in |
What type of issue are you creating?
What version of this module are you using?
Please add a description for your issue:
When running the generated SDK in a project with TypeScript 2.2.1 it results in an error:
There is an example project here.
Workaround
Downgrade the Angular app to TypeScript 2.1.6.
The text was updated successfully, but these errors were encountered: