-
Notifications
You must be signed in to change notification settings - Fork 279
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
空值检查 #44
Comments
没明白问题,这不是自己配 tsconfig.json 能解决的吗? |
我贴的是测试代码,没有达到目的。你怎么配置的? |
"strict": true, |
为了让结果更明显,我改了测试代码,如下:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我希望umi可以对null值做严格的测试(不要给对象赋值null!编译的时候就报错)。demo如下:
"strictNullChecks": true
umi test
The text was updated successfully, but these errors were encountered: