# LocalsContainer Class

import { LocalsContainer } from "@tsed/di"

# 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>