Vinyl
    Preparing search index...

    Interface ReadonlyMtsEvents

    Provides the logging prefix for all logs made by this target.

    interface ReadonlyMtsEvents {
        logPrefix: string;
        hasAnyListeners(): boolean;
        hasListeners(type: keyof MtsEventMap): boolean;
        on<K extends keyof MtsEventMap>(
            type: K,
            handler: EventHandler<MtsEventMap[K]>,
            options?: SignalOptions,
        ): Unsubscribe;
    }

    Hierarchy (View Summary)

    Index

    Properties

    logPrefix: string

    A string prefix for all log statements made by this target.

    Methods

    • Returns true if the event host has any listeners.

      Returns boolean

    • Returns true if the event host has any listeners for the given type.

      Parameters

      Returns boolean