Basic host for services

interface IServices {
    getService<T>(serviceName): null | T;
    setService(serviceName, service): void;
}

Hierarchy (view full)

Implemented by

Methods

  • Returns the service by its name identifier. Returns null if the name identifier is unregistered.

    Type Parameters

    • T

    Parameters

    • serviceName: string

      Will be a case insensitive match

    Returns null | T

  • Adds or replaces a service.

    Parameters

    • serviceName: string

      name that identifies this service and will be used in getService().

    • service: any

      the service. It can be a class, object, or primitive. Will be a case insensitive match

    Returns void

Generated using TypeDoc v0.25.12