Fn<T>: ((this: void, consumer: ComponentContext, defaultSpec?: ShareLocator.Spec<T>) => AfterEvent<[] | [T, ComponentContext]>)

Type Parameters

  • T

    Shared value type.

Type declaration

    • (this: void, consumer: ComponentContext, defaultSpec?: ShareLocator.Spec<T>): AfterEvent<[] | [T, ComponentContext]>
    • Signature of shared value locator function.

      Can be constructed by shareLocator function.

      Returns

      An AfterEvent keeper of the shared value and its sharer context, if found.

      Parameters

      • this: void
      • consumer: ComponentContext

        Consumer component context.

      • Optional defaultSpec: ShareLocator.Spec<T>

      Returns AfterEvent<[] | [T, ComponentContext]>

Generated using TypeDoc