UNPKG

@amo-tm/wsc

Version:

The amo WSC component of the amo JS SDK

31 lines (30 loc) 917 B
import { Name } from '../core/component/types'; import { Component } from '../core/component/component'; import { Provider } from '../core/component/provider'; /** * Registered components. * * @internal */ export declare const _components: Map<string, Component<any>>; /** * @param component - the component being added to the default container * @internal */ export declare function _addComponent<T extends Name>(component: Component<T>): void; /** * * @param component - the component to register * @returns whether or not the component is registered successfully * * @internal */ export declare function _registerComponent<T extends Name>(component: Component<T>): boolean; /** * @param name - service name * * @returns the provider for the service with the matching name * * @internal */ export declare function _getProvider<T extends Name>(name: T): Provider<T>;