I'm puzzled by the difference in behavior between these two snippets:
import * as moment from "../Typings/moment";
One works, while this one doesn't:
/// <reference path="../Typings/moment.d.ts" />
import * as moment from "moment";
It throws an error: cannot find module 'moment'
.
Interestingly, the latter snippet does work for libraries like react, so I assumed it would work for momentjs too.
I downloaded the typings file from their git repository: https://github.com/moment/moment/blob/develop/moment.d.ts