-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Out of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
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" />Metadata
Metadata
Assignees
Labels
Out of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScript