Skip to content

Use "import * as ___" with a separate "export { ___ }" declaration #742

Description

@aalmada

In the first few lines of the generated index.d.ts, the folders are exported as a pair of import and export. For example:

import type * as chainlink from "./@chainlink";
export type { chainlink };

The exception is for the factories folder that is exported in a single export line:

export * as factories from "./factories";

It's also used to export other folders in TypeChain.

This causes the api-exporter to error with the message Error: The "export * as ___" syntax is not supported yet; as a workaround, use "import * as ___" with a separate "export { ___ }" declaration.

Is it possible to always use the two-lined export for folders instead of the one-liner?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions