Closed shazow closed 1 month ago
cc @yohamta
@shazow Thank you for the quick implementation, it looks great!
I was thinking that having the response types for each API defined somewhere could be helpful for users to determine the type of loaderResult
. What do you think about that?
Could do that, would you like to do a PR?
The type can also be inferred by ContractResult.loader
type (or ContractResult.loader.name
)
Thank you for the suggestion. I’ll submit a PR if it seems helpful.
Thank you! I don't want to commit to always have an exact replica of upstream APIs but it would be helpful for documenting what to expect. Could do something like SourcifyContractResult|EtherscanContractResult|any
.
ContractResult.loaderResult?: any
userdoc
anddevdoc
added earlier, should be accessed vialoaderResult
now.