TypeChain
TypeChain copied to clipboard
Use "import * as ___" with a separate "export { ___ }" declaration
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?