Monday 4 May 2015

Helicopters in Vietnam, TypeScript and Generics, Type Definition Files in TypeScript

Helicopters in the Vietnam War

At the end of the Vietnam War, unneeded helicopters were pushed overboard so that the ships would have more room to take rescued troops.

TypeScript and Generics

You can use generics in TypeScript. They're code templates. They're re-useable and flexible. You can use them instead of using the type `any`. The type is supplied when it is used and thus type checking can be enforced for the particular type supplied and wherever that particular thing is used elsewhere in the code.

Type Definition Files

There are type definition files available at the site Definitely Typed for most of the major JavaScript libraries so that you can check whether you are using the library correctly at compile time.

No comments:

Post a Comment