Skip to content

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

@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
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions