- 
      
      Please your library user with typescript genericIn typescript, generic is a tool that api/library author to please its consumer. What does this means. 
- 
      
      Class field initialization in typescriptIn typescript class, you can define your field initialization in multiple ways. Here is one typical way to do that. 
- 
      
      A JavaScript interview question which can be fixed by 'let'A very popular JavaScript interview question on Lexical scope and closure is like the follow. 
- 
      
      Minimize the price (not the benefit) of type in TypescriptI watched Anders Hejlsberg introducing typescript in 2012. Then I thought I don't have the problem it tries to solve. Type in Javascript has not yet caused any problem for me, as I have unit test, renaming and intellisense is also not a problem for me, because I have webstorm. Then, I found that Douglas Crockford said something in google plus 
- 
      
      TypeScript is duck typing.When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck.