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
In many cases, such as defining parameters to functions that wrap over RPC methods, the optional configuration object, such as the many different configuration parameters supported by getBlock, can cause TypeScript a great deal of confusion when trying to accurately type-check.
In fact, it usually will not successfully type-check for heavily overloaded methods such as getBlock.
Details
At the moment, the proper approach is not yet known. However, we may need to investigate possibly re-working these overloads to be more friendly with TypeScript.
The text was updated successfully, but these errors were encountered:
Motivation
In many cases, such as defining parameters to functions that wrap over RPC methods, the optional configuration object, such as the many different configuration parameters supported by
getBlock
, can cause TypeScript a great deal of confusion when trying to accurately type-check.In fact, it usually will not successfully type-check for heavily overloaded methods such as
getBlock
.Details
At the moment, the proper approach is not yet known. However, we may need to investigate possibly re-working these overloads to be more friendly with TypeScript.
The text was updated successfully, but these errors were encountered: