We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/wangdoc/javascript-tutorial/issues/url
上面示例中,{}代表了 Object 类型,不打开strictNullChecks时,它包括了undefined和null,就相当于包括了所有类型的值,所以这时unknown类型可以赋值给{}类型,类型A就为number。打开strictNullChecks时,{}就排除掉了undefined和null,这时unknown类型就不能赋值给{}类型后,类型A就为string。
阮老师,这里类型A的判定写反了。
The text was updated successfully, but these errors were encountered:
635a5fa
谢谢指出,已经更正。
Sorry, something went wrong.
No branches or pull requests
https://github.com/wangdoc/javascript-tutorial/issues/url
阮老师,这里类型A的判定写反了。
The text was updated successfully, but these errors were encountered: