接口未导出为类型?

问题描述 投票:0回答:1

我正在为开源包做出贡献

ethers
。 由于某种原因,
CommunityResourceable
函数被注释掉了 - 我正在尝试让它再次工作。

CommunityResourceable
定义于 ethers.js/src.ts/providers /community.ts(在我的叉子中)。

然后,导出如下:

export type {
    CommunityResourceable
} from "./community.js";

src.ts/providers/index.ts

最后导出到src.ts/ethers.ts

但是,如果我使用

git install https://github.com/aaronzshey/ethers.js.git
安装修补版本并运行

import type { CommunityResourceable } from "ethers"

我收到一条错误,指出 CommunityResourceable 不是导出。 有什么见解吗?

Repl.it 错误演示在这里

typescript import interface ethers.js
1个回答
0
投票

CommunityResourceable
./providers/community.js`
 中导出 
src.ts/ethers.ts file is missing, you need to add it there with other exports from

© www.soinside.com 2019 - 2024. All rights reserved.