Skip to content

Do not emit /// <reference types=".." /> for augmented declarations in dependencies #11849

Closed
@mhegazy

Description

@mhegazy
/// <reference types="node" />
interface I {
    e: Error;
}
> npm install @types/node

> tsc --d a.ts

> type a.ts

/// <reference types="node" />
interface I {
    e: Error;
}

Error should not be cause a type dependency as it partially came from lib.d.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions