tsc 1.1

- tsc 1.1
- fixing compilation error in vg.ts
- moving interfaces to appropriate places