vidstack
Version:
Build awesome media experiences on the web.
18 lines (17 loc) • 609 B
TypeScript
import type { DOMEvent } from 'maverick.js/std';
import type { ScreenOrientationLockType, ScreenOrientationType } from './types';
export interface ScreenOrientationAPI {
events: ScreenOrientationEvents;
}
export interface ScreenOrientationEvents {
'orientation-change': ScreenOrientationChangeEvent;
}
export interface ScreenOrientationChangeEventDetail {
orientation: ScreenOrientationType;
lock?: ScreenOrientationLockType;
}
/**
* Fired when the current screen orientation changes.
*/
export interface ScreenOrientationChangeEvent extends DOMEvent<ScreenOrientationChangeEventDetail> {
}