Agoric / dapp-offer-up

Offer Up is a simple Dapp for the Agoric smart contract platform that permits users to explore items for sale in a marketplace
6 stars 5 forks source link

E (Eventual Send) type 'never' has no call signature #31

Open 0xpatrickdev opened 9 months ago

0xpatrickdev commented 9 months ago

When importing E from @endo/far instead of @endo/eventual-send, the typescript compiler will complain when any method is called on a remotable (E(remotable).foo()): type 'never' has no call signature.

Type definitions have been fixed in subsequent releases, but haven't landed in the the latest release - agoric-upgrade-13 - yet.

In the interim this can be solved by importing from @endo/eventual-send, but for convention it's preferable to import from @endo/far.

https://github.com/Agoric/dapp-offer-up/pull/26#discussion_r1438668729

https://github.com/Agoric/dapp-offer-up/pull/26#discussion_r1438764006