Skip to content

//# sourceTypingsURL=... #4846

Closed
Closed
@g162h3

Description

@g162h3

Let's say you develop a library in ts. The library is then included into js and ts projects. Would it make sense for the latter to allow including just the compiled js file, but still have the typings?

lib.js:

...
//# sourceTypingsURL=lib.d.ts
//# sourceMappingURL=lib.js.map

foo.ts:

/// <reference path="lib.js" />
...

This would also allow to embed other js files without invalidating the source map.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions