Content
@
0 reply
0 recast
0 reaction
Samuel ツ
@samuellhuber.eth
Using Typescript do you prefer your libraries to return promises or something else? with network requests to e.g. hubs on farcaster we can't get instant returns of data. Appreciate feedback on the best way to do it. Here's a proposal by @nazeeh
5 replies
1 recast
6 reactions
Sam
@sammdec.eth
I would say Promises is pretty much a standard at this point. Anything async will need them and they are built in to every runtime these days
1 reply
0 recast
0 reaction
Samuel ツ
@samuellhuber.eth
Thank for the input mate! Seems like everyone agrees! So @farcasterkit will return promise<t> for e.g. ConnectedAddresses When you query for them 🤝
0 reply
0 recast
1 reaction