Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn build fails with type error if moonworm is dependency #61

Open
peersky opened this issue Mar 3, 2022 · 0 comments
Open

yarn build fails with type error if moonworm is dependency #61

peersky opened this issue Mar 3, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@peersky
Copy link

peersky commented Mar 3, 2022

./src/core/utils/moonworm.ts:14:11
Type error: Type 'string' is not assignable to type 'never'.

  12 |   const o = new ABIGeneric();
  13 |   for (var i = 0; i < abiItems.length; i++) {
> 14 |     const methodName: keyof ABIGeneric = abiItems[i].name ?? "_";
     |           ^
  15 |     const method = (x: number) => x + 1;
  16 |     if (methodName) {
  17 |       o[methodName] = method; // type sig seems unnecessary
error Command failed with exit code 1.
@peersky peersky added the bug Something isn't working label Mar 3, 2022
@peersky peersky added this to the moonworm.js milestone Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant