Currently I have 2 different ways in case I want to load in external code into my typescript file.
If i refer to another typescript file I have to write:
Just declare it as an external module
/// <reference path="./types/angular/angular.d.ts" /> declare module 'angular'{ var angular:ng.IAngularStatic; export = angular; } // now you can do: import angular = require('angular');