Type Aliases

You can now define an alias for a type using the type keyword:

  1. type PrimitiveArray = Array<string|number|boolean>;
  2. type MyNumber = number;
  3. type NgScope = ng.IScope;
  4. type Callback = () => void;

Type aliases are exactly the same as their original types; they are simply alternative names.