@alessiofrittoli/web-utils
Version:
Common TypeScript web utilities
14 lines (12 loc) • 422 B
TypeScript
/**
* Use this media query to check if document currently matches the portrait device orientation.
*
*/
declare const portraitMediaQuery = "(orientation:portrait)";
/**
* Check if device is in portrait orientation.
*
* @returns `true` if the device is in portrait orientation when this function is executed, `false` otherwise.
*/
declare const isPortrait: () => boolean;
export { isPortrait, portraitMediaQuery };