Typescript: intellisense typeroots for jsconfig.json

Created on 30 Mar 2019  路  2Comments  路  Source: microsoft/TypeScript

Suggestion

Add the typeRoots property for jsconfig.json like tsconfig.json

Use Cases

In an Asp.net Core project , there are no intellisence for view.cshtml file's <script> when my type definition file put in wwwroot/@typings

Examples

/aspnetcoreproject
   | wwwroot
       |@typings
       |tsconfig.json
   |Views
        |Home
            |index.cshtml    (can not find the type definition files)
   |jsconfig.json

Checklist

My suggestion meets these guidelines:

  • [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • [x] This wouldn't change the runtime behavior of existing JavaScript code
  • [x] This could be implemented without emitting different JS based on the types of the expressions
  • [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • [x] This feature would agree with the rest of TypeScript's Design Goals.
Experience Enhancement Suggestion

Most helpful comment

I would also like to suggest this change.

All 2 comments

I'd be willing to take a stab at this, are the maintainers interested in this feature aswell?

I would also like to suggest this change.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

siddjain picture siddjain  路  3Comments

Roam-Cooper picture Roam-Cooper  路  3Comments

dlaberge picture dlaberge  路  3Comments

remojansen picture remojansen  路  3Comments

Antony-Jones picture Antony-Jones  路  3Comments