TransformOf
TransformOf<
R> =RextendsReactor<ServiceOf<R>, infer T> ?T:never
Defined in: core/src/types/reactor.ts:301
The transform of a reactor, read from the reactor’s own type: "candid"
for a Reactor, "display" for a DisplayReactor, and the key a subclass
passes on, such as a MetadataReactor’s "metadata".
Type Parameters
Section titled “Type Parameters”R extends object
The reactor’s type, as typeof reactor.
Example
Section titled “Example”const ledger = new DisplayReactor<Ledger>({ clientManager, name: "ledger", idlFactory })
type LedgerTransform = TransformOf<typeof ledger> // "display"