Skip to content

Output declarations should include module name #17379

Closed
@madelson

Description

@madelson

TypeScript Version: Microsoft.TypeScript.MSBuild 2.4.1

Code

/// <amd-module name="foo" />
export class Bar { ... }

Expected behavior:
I would expect my explicit module name to be preserved in the output .d.ts file:

declare module "foo" {
    export class Bar { ... }
}

Actual behavior:
The explictly-specified module name seems to be ignored completely:

export declare class Bar { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions