Type alias Provider<TBody, TSharer>

Provider<TBody, TSharer>: ((this: void, sharer: ComponentContext<TSharer>) => TBody | AfterEvent<[TBody]>)

Type Parameters

  • TBody = unknown

    Shareable body type.

  • TSharer extends object = any

    Sharer component type.

Type declaration

    • (this: void, sharer: ComponentContext<TSharer>): TBody | AfterEvent<[TBody]>
    • Shareable provider signature.

      Provides shareable body rather the shareable instance itself.

      Parameters

      • this: void
      • sharer: ComponentContext<TSharer>

      Returns TBody | AfterEvent<[TBody]>

Generated using TypeDoc