Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. let statistics = this.video.getStatistics();
  2.  
  3. let currentLikeCount : number = statistics!.getLikeCount() ? statistics.getLikeCount() : 1;
  4.  
  5. error TS2322: Type 'number | null' is not assignable to type 'number'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement