TypedRequestPayload
TypedRequestPayload<
M> =RpcMethods[M]["params"] extendsvoid?object:object
Defined in: packages/dapp/src/provider/typed-request.ts:21
Type-safe request payload.
Makes illegal states unrepresentable:
- Methods with void params:
paramsis optional and must be undefined - Methods with params:
paramsis required with the correct type
Type Parameters
Section titled “Type Parameters”M extends RpcMethodName