# LocalsContainer Class

Module
import { LocalsContainer } from "@tsed/di"
Source/packages/di/src/class/LocalsContainer.ts

# Overview

class LocalsContainer<V> extends Map<TokenProvider, V> {
    emit(eventName: string, ...args: any[]): Promise<void>;
    toArray(): V[];
    destroy(): Promise<void>;
}

# Members

emit(eventName: string, ...args: any[]): Promise<void>
Param Type Description
eventName string The event name to emit at all services. args

Emit an event to all service. See service lifecycle hooks.


toArray(): V[]

destroy(): Promise<void>