Options
All
  • Public
  • Public/Protected
  • All
Menu

Module core

Sociably Core

This is the core module of Sociably framework.

Install

npm install @sociably/core
# or with yarn
yarn add @sociably/core

Docs

Check the framework documents and the package references.

Index

Other

Renames and re-exports default
Renames and re-exports default
Renames and re-exports default
Renames and re-exports default
Re-exports SociablyProfile
Renames and re-exports default
AnyEventContext: EventContext<any, any, any>
AnySociablyPlatform: SociablyPlatform<any, unknown, unknown, any, unknown>
AppConfig<Platform>: { modules?: ServiceModule[]; platforms?: Platform[]; services?: ServiceProvision<unknown>[] }

Type parameters

Type declaration

ContainerComponent<Props>: ServiceContainer<ContainerComponentFn<Props>, unknown[]>

Type parameters

  • Props

ContainerElement<Props, Component>: SociablyElement<Props, Component>

Type parameters

DispatchFn<Job, Frame, Result>: (frame: Frame, scope?: ServiceScope) => Promise<DispatchResponse<Job, Result>>

Type parameters

Type declaration

DispatchMiddleware<Job, Frame, Result>: Middleware<Frame, DispatchResponse<Job, Result>>

Type parameters

DispatchWrapper<Job, Frame, Result>: (dispatch: (frame: Frame) => Promise<DispatchResponse<Job, Result>>) => DispatchFn<Job, Frame, Result>

Type parameters

Type declaration

EventContext<Event, Metadata, Bot>: { bot: Bot; event: Event; metadata: Metadata; platform: string; reply: any }

Type parameters

Type declaration

EventContextOfPlatform<Platform>: Platform extends SociablyPlatform<infer Context, unknown, unknown, any, unknown> ? Context : never

Type parameters

EventMiddleware<Context, Response>: Middleware<Context, Response>

Type parameters

FragmentElement: SociablyElement<FragmentProps, typeof SOCIABLY_FRAGMENT_TYPE>
FragmentProps: { children: SociablyNode }

Type declaration

FunctionalComponent<Props>: (props: Props, circs: RenderEnv) => SociablyElement<unknown, unknown>

Type parameters

  • Props

Type declaration

FunctionalElement<Props, Component>: SociablyElement<Props, Component>

Type parameters

GeneralElement: SociablyElement<{}, string>
InitScopeFn: () => ServiceScope

Type declaration

Middleware<Input, Output>: (input: Input, next: (input: Input) => Promise<Output>) => Promise<Output>

Type parameters

  • Input

  • Output

Type declaration

    • (input: Input, next: (input: Input) => Promise<Output>): Promise<Output>
    • Parameters

      • input: Input
      • next: (input: Input) => Promise<Output>
          • (input: Input): Promise<Output>
          • Parameters

            • input: Input

            Returns Promise<Output>

      Returns Promise<Output>

ModuleUtilities: { initScope: InitScopeFn; popError: PopErrorFn }

Type declaration

NativeComponent<Props, Segment>: { $$platform: string; $$typeof: typeof SOCIABLY_NATIVE_TYPE }

Type parameters

Type declaration

NativeElement<Props, Component>: SociablyElement<Props, Component>

Type parameters

PauseDelayFn: () => Promise<unknown>

Type declaration

    • (): Promise<unknown>
    • Returns Promise<unknown>

PauseElement: SociablyElement<PauseProps, typeof SOCIABLY_PAUSE_TYPE>
PauseProps: { delay?: PauseDelayFn; time?: number }

Type declaration

PlatformUtilities<Context, EventResponse, Job, Frame, Result>: { dispatchWrapper: DispatchWrapper<Job, Frame, Result>; popEventWrapper: PopEventWrapper<Context, EventResponse> }

Type parameters

Type declaration

PopErrorFn: (err: Error, scope?: ServiceScope) => void

Type declaration

PopEventFn<Context, Response>: (context: Context, scope?: ServiceScope) => Promise<Response>

Type parameters

Type declaration

    • Parameters

      Returns Promise<Response>

PopEventWrapper<Context, Response>: (finalHandler: (ctx: Context) => Promise<Response>) => PopEventFn<Context, Response>

Type parameters

Type declaration

    • (finalHandler: (ctx: Context) => Promise<Response>): PopEventFn<Context, Response>
    • Parameters

      • finalHandler: (ctx: Context) => Promise<Response>
          • (ctx: Context): Promise<Response>
          • Parameters

            • ctx: Context

            Returns Promise<Response>

      Returns PopEventFn<Context, Response>

ProviderElement: SociablyElement<ProviderProps, typeof SOCIABLY_PROVIDER_TYPE>
ProviderProps: { children: SociablyNode; provide: Interfaceable<unknown>; value: unknown }

Type declaration

RawElement: SociablyElement<RawProps, typeof SOCIABLY_RAW_TYPE>
RawProps: { value: unknown }

Type declaration

  • value: unknown
RenderingChannel: null | SociablyChannel
ServiceModule: { provisions: ServiceProvision<unknown>[]; startHook?: null | ServiceContainer<Promise<void>, unknown[]>; stopHook?: null | ServiceContainer<Promise<void>, unknown[]> }

Type declaration

SociablyElement<P, T>: { $$typeof: typeof SOCIABLY_ELEMENT_TYPE; props: P; type: T }

Type parameters

  • P

  • T

Type declaration

  • $$typeof: typeof SOCIABLY_ELEMENT_TYPE
  • props: P
  • type: T
SociablyElementType: string | FunctionalComponent<unknown> | ContainerComponent<unknown> | NativeComponent<unknown, any> | typeof SOCIABLY_FRAGMENT_TYPE | typeof SOCIABLY_PAUSE_TYPE | typeof SOCIABLY_PROVIDER_TYPE | typeof SOCIABLY_THUNK_TYPE | typeof SOCIABLY_RAW_TYPE
SociablyEmpty: null | undefined | boolean
SociablyPlatform<Context, EventResp, Job, Frame, Result>: { dispatchMiddlewares?: MaybeContainer<DispatchMiddleware<Job, Frame, Result>>[]; eventMiddlewares?: MaybeContainer<EventMiddleware<Context, EventResp>>[]; name: string; provisions: ServiceProvision<unknown>[]; startHook?: ServiceContainer<Promise<void>, unknown[]>; stopHook?: null | ServiceContainer<Promise<void>, unknown[]>; utilitiesInterface: ServiceInterface<PlatformUtilities<Context, EventResp, Job, Frame, Result>> }

Type parameters

Type declaration

SociablyText: string | number
ThunkEffectFn: () => unknown | Promise<unknown>

Type declaration

    • (): unknown | Promise<unknown>
    • Returns unknown | Promise<unknown>

ThunkElement: SociablyElement<ThunkProps, typeof SOCIABLY_THUNK_TYPE>
ThunkProps: { effect: ThunkEffectFn }

Type declaration

Service Registry

  • makeClassProvider<_T, A>(opts: ClassProviderOptions<_T, [A]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A]>> & Klazz
  • makeClassProvider<_T, A, B>(opts: ClassProviderOptions<_T, [A, B]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B]>> & Klazz
  • makeClassProvider<_T, A, B, C>(opts: ClassProviderOptions<_T, [A, B, C]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C]>> & Klazz
  • makeClassProvider<_T, A, B, C, D>(opts: ClassProviderOptions<_T, [A, B, C, D]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C, D]>> & Klazz
  • makeClassProvider<_T, A, B, C, D, E>(opts: ClassProviderOptions<_T, [A, B, C, D, E]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C, D, E]>> & Klazz
  • makeClassProvider<_T, A, B, C, D, E, F>(opts: ClassProviderOptions<_T, [A, B, C, D, E, F]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C, D, E, F]>> & Klazz
  • makeClassProvider<_T, A, B, C, D, E, F, G>(opts: ClassProviderOptions<_T, [A, B, C, D, E, F, G]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C, D, E, F, G]>> & Klazz
  • makeClassProvider<_T, A, B, C, D, E, F, G, H>(opts: ClassProviderOptions<_T, [A, B, C, D, E, F, G, H]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C, D, E, F, G, H]>> & Klazz
  • makeClassProvider<_T, A, B, C, D, E, F, G, H, I>(opts: ClassProviderOptions<_T, [A, B, C, D, E, F, G, H, I]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C, D, E, F, G, H, I]>> & Klazz
  • makeClassProvider<_T, A, B, C, D, E, F, G, H, I, J>(opts: ClassProviderOptions<_T, [A, B, C, D, E, F, G, H, I, J]>): <T, Klazz>(klazz: Klazz & Constructor<T>) => ServiceProvider<T, ResolveDependencies<[A, B, C, D, E, F, G, H, I, J]>> & Klazz
  • makeContainer<A>(opts: ContainerOptions<[A]>): <T>(fn: FactoryFn<T, [A]>) => ContainerFn<T, [A]>
  • makeContainer<A, B>(opts: ContainerOptions<[A, B]>): <T>(fn: FactoryFn<T, [A, B]>) => ContainerFn<T, [A, B]>
  • makeContainer<A, B, C>(opts: ContainerOptions<[A, B, C]>): <T>(fn: FactoryFn<T, [A, B, C]>) => ContainerFn<T, [A, B, C]>
  • makeContainer<A, B, C, D>(opts: ContainerOptions<[A, B, C, D]>): <T>(fn: FactoryFn<T, [A, B, C, D]>) => ContainerFn<T, [A, B, C, D]>
  • makeContainer<A, B, C, D, E>(opts: ContainerOptions<[A, B, C, D, E]>): <T>(fn: FactoryFn<T, [A, B, C, D, E]>) => ContainerFn<T, [A, B, C, D, E]>
  • makeContainer<A, B, C, D, E, F>(opts: ContainerOptions<[A, B, C, D, E, F]>): <T>(fn: FactoryFn<T, [A, B, C, D, E, F]>) => ContainerFn<T, [A, B, C, D, E, F]>
  • makeContainer<A, B, C, D, E, F, G>(opts: ContainerOptions<[A, B, C, D, E, F, G]>): <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G]>) => ContainerFn<T, [A, B, C, D, E, F, G]>
  • makeContainer<A, B, C, D, E, F, G, H>(opts: ContainerOptions<[A, B, C, D, E, F, G, H]>): <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H]>) => ContainerFn<T, [A, B, C, D, E, F, G, H]>
  • makeContainer<A, B, C, D, E, F, G, H, I>(opts: ContainerOptions<[A, B, C, D, E, F, G, H, I]>): <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>) => ContainerFn<T, [A, B, C, D, E, F, G, H, I]>
  • makeContainer<A, B, C, D, E, F, G, H, I, J>(opts: ContainerOptions<[A, B, C, D, E, F, G, H, I, J]>): <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>) => ContainerFn<T, [A, B, C, D, E, F, G, H, I, J]>
  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    Parameters

    • opts: ContainerOptions<[A]>

    Returns <T>(fn: FactoryFn<T, [A]>) => ContainerFn<T, [A]>

      • <T>(fn: FactoryFn<T, [A]>): ContainerFn<T, [A]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A]>

        Returns ContainerFn<T, [A]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B]>

    Returns <T>(fn: FactoryFn<T, [A, B]>) => ContainerFn<T, [A, B]>

      • <T>(fn: FactoryFn<T, [A, B]>): ContainerFn<T, [A, B]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B]>

        Returns ContainerFn<T, [A, B]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C]>

    Returns <T>(fn: FactoryFn<T, [A, B, C]>) => ContainerFn<T, [A, B, C]>

      • <T>(fn: FactoryFn<T, [A, B, C]>): ContainerFn<T, [A, B, C]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C]>

        Returns ContainerFn<T, [A, B, C]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C, D]>

    Returns <T>(fn: FactoryFn<T, [A, B, C, D]>) => ContainerFn<T, [A, B, C, D]>

      • <T>(fn: FactoryFn<T, [A, B, C, D]>): ContainerFn<T, [A, B, C, D]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C, D]>

        Returns ContainerFn<T, [A, B, C, D]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C, D, E]>

    Returns <T>(fn: FactoryFn<T, [A, B, C, D, E]>) => ContainerFn<T, [A, B, C, D, E]>

      • <T>(fn: FactoryFn<T, [A, B, C, D, E]>): ContainerFn<T, [A, B, C, D, E]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C, D, E]>

        Returns ContainerFn<T, [A, B, C, D, E]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C, D, E, F]>

    Returns <T>(fn: FactoryFn<T, [A, B, C, D, E, F]>) => ContainerFn<T, [A, B, C, D, E, F]>

      • <T>(fn: FactoryFn<T, [A, B, C, D, E, F]>): ContainerFn<T, [A, B, C, D, E, F]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C, D, E, F]>

        Returns ContainerFn<T, [A, B, C, D, E, F]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C, D, E, F, G]>

    Returns <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G]>) => ContainerFn<T, [A, B, C, D, E, F, G]>

      • <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G]>): ContainerFn<T, [A, B, C, D, E, F, G]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C, D, E, F, G]>

        Returns ContainerFn<T, [A, B, C, D, E, F, G]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    • H: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C, D, E, F, G, H]>

    Returns <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H]>) => ContainerFn<T, [A, B, C, D, E, F, G, H]>

      • <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H]>): ContainerFn<T, [A, B, C, D, E, F, G, H]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C, D, E, F, G, H]>

        Returns ContainerFn<T, [A, B, C, D, E, F, G, H]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    • H: AnyDep

    • I: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C, D, E, F, G, H, I]>

    Returns <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>) => ContainerFn<T, [A, B, C, D, E, F, G, H, I]>

      • <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>): ContainerFn<T, [A, B, C, D, E, F, G, H, I]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>

        Returns ContainerFn<T, [A, B, C, D, E, F, G, H, I]>

  • makeContainer marks a function as a container and annotate the dependencies.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    • H: AnyDep

    • I: AnyDep

    • J: AnyDep

    Parameters

    • opts: ContainerOptions<[A, B, C, D, E, F, G, H, I, J]>

    Returns <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>) => ContainerFn<T, [A, B, C, D, E, F, G, H, I, J]>

      • <T>(fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>): ContainerFn<T, [A, B, C, D, E, F, G, H, I, J]>
      • Type parameters

        • T

        Parameters

        • fn: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>

        Returns ContainerFn<T, [A, B, C, D, E, F, G, H, I, J]>

  • makeFactoryProvider<A>(opts: FactoryProviderOptions<[A]>): <T>(factory: FactoryFn<T, [A]>) => ProviderFn<T, [A]>
  • makeFactoryProvider<A, B>(opts: FactoryProviderOptions<[A, B]>): <T>(factory: FactoryFn<T, [A, B]>) => ProviderFn<T, [A, B]>
  • makeFactoryProvider<A, B, C>(opts: FactoryProviderOptions<[A, B, C]>): <T>(factory: FactoryFn<T, [A, B, C]>) => ProviderFn<T, [A, B, C]>
  • makeFactoryProvider<A, B, C, D>(opts: FactoryProviderOptions<[A, B, C, D]>): <T>(factory: FactoryFn<T, [A, B, C, D]>) => ProviderFn<T, [A, B, C, D]>
  • makeFactoryProvider<A, B, C, D, E>(opts: FactoryProviderOptions<[A, B, C, D, E]>): <T>(factory: FactoryFn<T, [A, B, C, D, E]>) => ProviderFn<T, [A, B, C, D, E]>
  • makeFactoryProvider<A, B, C, D, E, F>(opts: FactoryProviderOptions<[A, B, C, D, E, F]>): <T>(factory: FactoryFn<T, [A, B, C, D, E, F]>) => ServiceProvider<T, [A, B, C, D, E, F]>
  • makeFactoryProvider<A, B, C, D, E, F, G>(opts: FactoryProviderOptions<[A, B, C, D, E, F, G]>): <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G]>) => ProviderFn<T, [A, B, C, D, E, F, G]>
  • makeFactoryProvider<A, B, C, D, E, F, G, H>(opts: FactoryProviderOptions<[A, B, C, D, E, F, G, H]>): <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H]>) => ProviderFn<T, [A, B, C, D, E, F, G, H]>
  • makeFactoryProvider<A, B, C, D, E, F, G, H, I>(opts: FactoryProviderOptions<[A, B, C, D, E, F, G, H, I]>): <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>) => ProviderFn<T, [A, B, C, D, E, F, G, H, I]>
  • makeFactoryProvider<A, B, C, D, E, F, G, H, I, J>(opts: FactoryProviderOptions<[A, B, C, D, E, F, G, H, I, J]>): <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>) => ProviderFn<T, [A, B, C, D, E, F, G, H, I, J]>
  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A]>

    Returns <T>(factory: FactoryFn<T, [A]>) => ProviderFn<T, [A]>

      • <T>(factory: FactoryFn<T, [A]>): ProviderFn<T, [A]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A]>

        Returns ProviderFn<T, [A]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B]>

    Returns <T>(factory: FactoryFn<T, [A, B]>) => ProviderFn<T, [A, B]>

      • <T>(factory: FactoryFn<T, [A, B]>): ProviderFn<T, [A, B]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B]>

        Returns ProviderFn<T, [A, B]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C]>

    Returns <T>(factory: FactoryFn<T, [A, B, C]>) => ProviderFn<T, [A, B, C]>

      • <T>(factory: FactoryFn<T, [A, B, C]>): ProviderFn<T, [A, B, C]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C]>

        Returns ProviderFn<T, [A, B, C]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C, D]>

    Returns <T>(factory: FactoryFn<T, [A, B, C, D]>) => ProviderFn<T, [A, B, C, D]>

      • <T>(factory: FactoryFn<T, [A, B, C, D]>): ProviderFn<T, [A, B, C, D]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C, D]>

        Returns ProviderFn<T, [A, B, C, D]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C, D, E]>

    Returns <T>(factory: FactoryFn<T, [A, B, C, D, E]>) => ProviderFn<T, [A, B, C, D, E]>

      • <T>(factory: FactoryFn<T, [A, B, C, D, E]>): ProviderFn<T, [A, B, C, D, E]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C, D, E]>

        Returns ProviderFn<T, [A, B, C, D, E]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C, D, E, F]>

    Returns <T>(factory: FactoryFn<T, [A, B, C, D, E, F]>) => ServiceProvider<T, [A, B, C, D, E, F]>

      • <T>(factory: FactoryFn<T, [A, B, C, D, E, F]>): ServiceProvider<T, [A, B, C, D, E, F]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C, D, E, F]>

        Returns ServiceProvider<T, [A, B, C, D, E, F]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C, D, E, F, G]>

    Returns <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G]>) => ProviderFn<T, [A, B, C, D, E, F, G]>

      • <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G]>): ProviderFn<T, [A, B, C, D, E, F, G]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C, D, E, F, G]>

        Returns ProviderFn<T, [A, B, C, D, E, F, G]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    • H: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C, D, E, F, G, H]>

    Returns <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H]>) => ProviderFn<T, [A, B, C, D, E, F, G, H]>

      • <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H]>): ProviderFn<T, [A, B, C, D, E, F, G, H]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C, D, E, F, G, H]>

        Returns ProviderFn<T, [A, B, C, D, E, F, G, H]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    • H: AnyDep

    • I: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C, D, E, F, G, H, I]>

    Returns <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>) => ProviderFn<T, [A, B, C, D, E, F, G, H, I]>

      • <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>): ProviderFn<T, [A, B, C, D, E, F, G, H, I]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I]>

        Returns ProviderFn<T, [A, B, C, D, E, F, G, H, I]>

  • makeFactoryProvider annotate a factory function as a provider serving for the instance type, and also an interface can be implemented.

    Type parameters

    • A: AnyDep

    • B: AnyDep

    • C: AnyDep

    • D: AnyDep

    • E: AnyDep

    • F: AnyDep

    • G: AnyDep

    • H: AnyDep

    • I: AnyDep

    • J: AnyDep

    Parameters

    • opts: FactoryProviderOptions<[A, B, C, D, E, F, G, H, I, J]>

    Returns <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>) => ProviderFn<T, [A, B, C, D, E, F, G, H, I, J]>

      • <T>(factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>): ProviderFn<T, [A, B, C, D, E, F, G, H, I, J]>
      • Type parameters

        • T

        Parameters

        • factory: FactoryFn<T, [A, B, C, D, E, F, G, H, I, J]>

        Returns ProviderFn<T, [A, B, C, D, E, F, G, H, I, J]>

Generated using TypeDoc