Skip to content

Support for TypeScript npm modules without declaractions #560

@Bobris

Description

@Bobris

Enhancement proposal:

I have simple npm module which contains "only" index.js (in commonjs) and index.ts - its source.
But its import cannot be found and typechecked by current atom-typescript because it requires index.d.ts and also definition of that in package.json. First it could be more clever and just change extension from main index.js. but if it cannot find index.d.ts just live with index.ts...

Another option would be to make moduleResolution customizable - like ts.CompilerHost can do.
It would probably need crazy escaping of javascript in tsconfig.json, but ultimately it would allow everything.

till now I used nasty import * as xxx from "node_modules/xxx/index"; but now it should be possible much nicer import * as xxx from "xxx";

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions