example of exports in typescript
/**
* Created by Josh on 12/22/16.
*/
//sample import
import {Collections} from "./Collection";
class Component {
f:Collections.Item<boolean>;
constructor (public name: string) {
this.f = new Collections.Item<boolean>(false);
}
}
/*export namespace Collections {
export class Item<T> {
value:T;
constructor(value:T){
this.value = value;
}
valueg():T {
return this.value
}
}
}
let test = new Collections.Item<number>(4);
console.log(test.valueg);*/
console.log(new Component("foo"));