ReceivePower<P>: ((power: P) => void)

Template for function-valued options for exo class or exo class kit definitions, for receiving powers back at definition time. For example,

let amplify;
const makeFoo = defineExoClassKit(
tag,
interfaceGuardKit,
initFn,
behaviorKit,
{
receiveAmplifier(a) { amplify = a; },
},
);

uses the receiveAmplifier option to receive, during the definition of this exo class kit, the power to amplify a facet of the kit.

Type Parameters

  • P extends unknown