-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 2.3.2
This is similar to #15487.
Code
// deps/dep/dep.d.ts
/// <reference path="indirect.d.ts" />
// deps/dep/indirect.d.ts
interface Dep {
}
// deps/dep/package.json
{
"typings": "dep.d.ts"
}
// src/index.ts
class Src implements Dep {}
Compile with
// src/tsconfig.json
{
"compilerOptions": {
"declaration": true,
"types": [
"dep"
],
"typeRoots": [
"../deps"
]
}
}
Expected behavior:
/// <reference types="dep" />
declare class Src implements Dep {
}
Actual behavior:
declare class Src implements Dep {
}
### Tasks
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this