ReactorArgsOf
ReactorArgsOf<
R,M> =ReactorArgs<ServiceOf<R>,M,TransformOf<R>>
Defined in: core/src/types/reactor.ts:323
The arguments a reactor’s method takes, in the reactor’s own form: raw
Candid values for a Reactor, display values (text for a nat or a
principal) for a DisplayReactor. It is
ReactorArgs<Service, M, Transform> with the service and transform read
from typeof reactor, so neither has to be named.
Type Parameters
Section titled “Type Parameters”R extends object
The reactor’s type, as typeof reactor.
M extends FunctionName<ServiceOf<R>>
The method.
Example
Section titled “Example”const ledger = new DisplayReactor<Ledger>({ clientManager, name: "ledger", idlFactory })
// `{ owner: string; subaccount?: ... }`: the account in display form,// derived rather than written out by handtype Account = ReactorArgsOf<typeof ledger, "icrc1_balance_of">[0]