For example you are building your own module, the same as Lodash: my-lodash.d.ts declare module "lodash" { declare interface FirstFunction { (data: any[]) :any; } declare interface Lodash { first: FirstFunction; }
背景 整个Github目录太大,国内网速不好,且其他部分也不需要。 方法 把 /tree/master 改成 trunk。 svn checkout https://github.com/lodash/lodash/trunk/docs output-dir