Creating TypeScript files using build/runtime environments, like Node, Gulp, etc., I regularly find myself referencing public repositories.
Currently it looks like the /// <reference path="" /> syntax only allows for referencing local files (at least I couldn't find any information of IRIs being supported, and TSC claims File not Found error when using a DefinitelyTyped URL).
But this results in a requirement to deliver .d.ts files of public repositories along with the project and to keep their relative position in sync with locally generated .d.ts files. (See SetTrend/TS18N failing project for reference).
So I propose to allow to use IRIs for reference:
/// <reference path="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/node/node.d.ts" />
Creating TypeScript files using build/runtime environments, like Node, Gulp, etc., I regularly find myself referencing public repositories.
Currently it looks like the
/// <reference path="" />syntax only allows for referencing local files (at least I couldn't find any information of IRIs being supported, andTSCclaims File not Found error when using a DefinitelyTyped URL).But this results in a requirement to deliver
.d.tsfiles of public repositories along with the project and to keep their relative position in sync with locally generated.d.tsfiles. (See SetTrend/TS18N failing project for reference).So I propose to allow to use IRIs for reference: