moonstream-to / moonworm

codegen for crypto degens and other ethereum smart contract toolkit for python
Apache License 2.0
36 stars 7 forks source link

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

Open peersky opened 2 years ago

peersky commented 2 years ago
./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.