Endo API documentation
    Preparing search index...

    Type Alias ReceivePower<P>

    ReceivePower: (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

    Type declaration

      • (power: P): void
      • Parameters

        • power: P

        Returns void