Skip to content

[api-extractor] Support "export { x }" for converting a source file's exports into a named module #663

@donahut

Description

@donahut

Given an index.ts such as:

import * as d from './d';

export * from './A';
export * from './B';
export * from './C';

export {
    d
};

The generated .apt.ts only produces valid output for A, B and C, whereas d produces things like:
// WARNING: The name ""<path>/lib/dts/d/index"" contains unsupported characters; API names should use only letters, numbers, and underscores
and
module "<path>/lib/dts/d/index" {

This sort of local namespacing and export pattern is used throughout our codebase, so any workarounds would be welcome.

Metadata

Metadata

Assignees

Labels

blockedWe can't proceed because we're waiting for somethingbugSomething isn't working as intendedeffort: mediumNeeds a somewhat experienced developer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions