Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Providers

Hierarchy

  • Providers

Index

Accessors

log

Methods

provide

  • provide<T>(providerName: Named<T>, orRegister?: Supplier<T>): T

register

  • register<T>(instance: T, name?: Named<T>): T

reset

  • reset(): void

table

  • table(): void

Static get

Static provide

  • provide<T>(providerName: Named<T>, orRegister?: Supplier<T>): T

Static provideOrUse

  • provideOrUse<T>(fallback: T, providerName: Named<T>): T
  • Prefer registered instance but fallback to using fallback without registering.

    see

    useOrProvide

    Type parameters

    • T

    Parameters

    • fallback: T
    • providerName: Named<T>

    Returns T

Static register

  • register<T, I>(instance: I, name?: Named<T>): T

Static reset

  • reset(): void

Static useOrProvide

  • useOrProvide<T>(providerName: Named<T>, preferred?: T): T
  • Prefer preferred but fallback to registered providerName.

    see

    provideOrUse

    Type parameters

    • T

    Parameters

    • providerName: Named<T>
    • Optional preferred: T

    Returns T

Generated using TypeDoc