Fix parseDate returning Date instead of Date | null in its types.
Setting "strictNullChecks": true in tsconfig.json will prevent regressions, but that requires some refactoring to satisfy. There are a handful of places that:
Expect null but get a value that could be undefined
Expect undefined but get a value that could be null
Expect a non-nullish type but get a value that could be nullish
coverage: 91.378%. remained the same
when pulling 3126f4459d7e22e38dbd8207b4f406ac776828c7 on goodoldneon:fix-parseDate-type
into 1f9f7416fecde0ea298bb70c54c31ed160f699aa on wanasit:master.
Fix
parseDate
returningDate
instead ofDate | null
in its types.Setting
"strictNullChecks": true
intsconfig.json
will prevent regressions, but that requires some refactoring to satisfy. There are a handful of places that:null
but get a value that could beundefined
undefined
but get a value that could benull