Open thomasttvo opened 1 year ago
That behavior depends on flag strict: false
in tsconfig.json
. I don't know the reasons why it's false
, but it disables some useful validations in TS. To have just null checking you can enable another flag - strictNullChecks: true
48 indicates there's a problem with the typescript set up where it doesn't alert if a property getter is called on a nullable variable.