TypeChain icon indicating copy to clipboard operation
TypeChain copied to clipboard

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

Open aalmada opened this issue 3 years ago • 0 comments

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?

aalmada avatar Jul 22 '22 12:07 aalmada