Skip to content

Allow third-party plug-ins resolve the resolution of types. #11995

Closed
@ejmarino

Description

@ejmarino

Currently v2 of typescript is implementing npm's @types for resolution of types. Additionaly, if a npm's project have 'types' defined in its package.json, the compiler will see it too.

I think a problem (not really a problem) occurs when a project use jspm or another package manager that isn't npm. If the required project include it's typings, tsc will not find it unless I specify it manually in the tsconfig.json. Missing all the magic that is implemented for npm modules.

Allowing to jspm (or another package manager) development team (or anybody else) to build a type-resolver plugin for jspm and letting tsc use that type-resolver, every resolver can have access to the specific configuration (jspm.config.json for example) to resolve module names to files.

I hope you like the idea. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions