@alessiofrittoli/web-utils
Version:
Common TypeScript web utilities
15 lines (13 loc) • 418 B
text/typescript
/**
* Prevent Element Overflow.
*
* @param target (Optional) The target HTMLElement. Default: `Document.documentElement`.
*/
declare const blockScroll: (target?: HTMLElement) => void;
/**
* Restore Element Overflow.
*
* @param target (Optional) The target HTMLElement. Default: `Document.documentElement`.
*/
declare const restoreScroll: (target?: HTMLElement) => void;
export { blockScroll, restoreScroll };