You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a type such as CosmosInterchainService are defined using the typescript ReturnType<...> idiom, vs-code hover shows the type as expected, but the reference docs (CosmosInterchainService) don't show the methods and stuff; they just show a link to the prepareCosmosInterchainService function.
This is convenient during development, but for external APIs, the indirection is obscure.
Description of the Design
Write out the type long-hand, and use satisfies or some such to ensure that the prepareCosmosInterchainService matches.
What is the Problem Being Solved?
When a type such as
CosmosInterchainService
are defined using the typescriptReturnType<...>
idiom, vs-code hover shows the type as expected, but the reference docs (CosmosInterchainService) don't show the methods and stuff; they just show a link to the prepareCosmosInterchainService function.This is convenient during development, but for external APIs, the indirection is obscure.
Description of the Design
Write out the type long-hand, and use
satisfies
or some such to ensure that theprepareCosmosInterchainService
matches.Security / Scaling / Upgrade Considerations
none. docs only.
Test Plan
I can't think of anything beyond manual review.
cc @mitdralla @turadg
The text was updated successfully, but these errors were encountered: