




var x: string;
var y: number;
var z: boolean;
var a: string[];
var f: () => string;
var foo: any;
function process(x: {a:string; b:number}){
return x.a.length;
}
interface IThing { a: number; b: string; } function process(x: IThing){return x.a.length; }
var tuple: [number, string] = [1, "bob"];
var secondElement = tuple[1]; // secondElement now has type 'string'
type PrimitiveArray = Array<string|number|boolean>;
type MyNumber = number;
type NgScope = ng.IScope;
type Callback = () => void;
enum Color {Red, Green, Blue};
var c: Color = Color.Green;
