UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

16 lines (15 loc) 676 B
import type { ESLMediaProviderRegistry } from './esl-media-registry'; import type { ProviderType } from './esl-media-provider'; /** * An event dispatched by {@link ESLMediaProviderRegistry} on new provider registration */ export declare class ESLMediaRegistryEvent extends Event { static readonly TYPE = "change"; readonly type: typeof ESLMediaRegistryEvent.TYPE; readonly target: ESLMediaProviderRegistry; /** Registered provider instance */ readonly provider: ProviderType; constructor(target: ESLMediaProviderRegistry, provider: ProviderType); /** Checks if the event relates to passed provider name */ isRelates(name: string): boolean; }