Playing with gulp build for typescript and module loading with systemjs
Make sure Resharper is set to use Typescript 1.5 using Resharper -> options -> typescript -> Inspections -> Typescript version
The Factory Decorator breaks typescript syntax in its current format but doesn't break the output, a better example would be to apply the factory in the constructor
References: