Skip to content

[api-extractor] Syntax error in resulting d.ts file #5794

@Climenty

Description

@Climenty

module A

export const one = ...
export const two = ...
const three = ...
export { three as "name.with_dot" }

module B

import * as X from "./A"

Resulting d.ts file

declare namespace X {
  export {
    one,
    two,
    three as name.with_dot
  }
}

Here we are, we lost the quotation marks.

Question Answer
@microsoft/api-extractor version? 7.58.7
Operating system? Linux
API Extractor scenario? rollups (.d.ts)
Would you consider contributing a PR? No
TypeScript compiler version? 5.9.3
Node.js version (node -v)? 24.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions