kekeh / angular-mydatepicker

Angular datepicker and date range picker :date:
https://kekeh.github.io/angular-mydatepicker/
MIT License
1 stars 11 forks source link

fix strictNullType check error of possibly undefined object #32

Closed aleksandar-kandzhichki closed 4 years ago

aleksandar-kandzhichki commented 4 years ago

Fixes #31

TsConfix strictNullType checks make and error due to typecheck of opts.stylesData which is defined as nullable. In this case we make sure we will have the styles data, but need to assert it for the TS check

codecov-io commented 4 years ago

Codecov Report

Merging #32 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #32   +/-   ##
=======================================
  Coverage   91.95%   91.95%           
=======================================
  Files          20       20           
  Lines        1206     1206           
  Branches      257      257           
=======================================
  Hits         1109     1109           
  Misses         97       97

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 84ec9f0...9828477. Read the comment docs.

kekeh commented 4 years ago

I have merged this PR. It is added to version 0.4.5.