@vime/angular
Version:
Angular bindings for the Vime media player.
15 lines (14 loc) • 717 B
TypeScript
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
import type { JSX, Components } from '@vime/core/dist/types';
export declare type Emitter<T extends ((...args: any[]) => any) | undefined> = EventEmitter<Parameters<Exclude<T, undefined>>[0]>;
export declare interface MuteControl extends Components.VmMuteControl {
}
export declare class MuteControl {
protected z: NgZone;
protected el: HTMLElement;
/** Emitted when the control receives focus. */
vmFocus: Emitter<JSX.VmMuteControl["onVmFocus"]>;
/** Emitted when the control loses focus. */
vmBlur: Emitter<JSX.VmMuteControl["onVmBlur"]>;
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
}