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
// See the above repo for a little more self containment.// Most notably `"strictNullChecks": true`interfaceI{optional?: (I|null);required: number;}letworkaround: I;workaround={optional: {required: 2},required: 1};workaround.optional.required;// This is where the error occurs
Expected behavior:
This code should properly compile without errors, even with "strictNullChecks": true Actual behavior:
With "strictNullChecks": true, there is a possibly undefined error.
TypeScript Version: 3.9.0-dev.20200305
Search Terms:
Code
https://github.com/mckaysalisbury/typescript-direct-set
Expected behavior:
This code should properly compile without errors, even with
"strictNullChecks": true
Actual behavior:
With
"strictNullChecks": true
, there is a possibly undefined error.Playground Link:
Typescript Playground
Related Issues:
Not that related
The text was updated successfully, but these errors were encountered: