dethcrypto / dethcrypto/TypeChain

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

Open
#742 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.8k
Forks
376
PR merge metrics
No merged PRs in 30d

Description

In the first few lines of the generated `index.d.ts`, the folders are exported as a pair of `import` and `export`. For example:
``` typescript
import type * as chainlink from "./@chainlink";
export type { chainlink };
```
The exception is for the `factories` folder that is exported in a single `export` line:
``` typescript
export * as factories from "./factories";
```
It's also used to export other folders in TypeChain.

This causes the [api-exporter](https://api-extractor.com/) 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.