mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-31 16:40:02 +00:00
16 lines
633 B
TypeScript
16 lines
633 B
TypeScript
// Type definitions for body-scroll-lock 2.6
|
|
// Project: https://github.com/willmcpo/body-scroll-lock
|
|
// Definitions by: kimcoder <https://github.com/kimcoder>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export interface BodyScrollOptions {
|
|
reserveScrollBarGap?: boolean;
|
|
allowTouchMove?: (el: HTMLElement | Element) => void;
|
|
}
|
|
|
|
export function disableBodyScroll(targetElement: HTMLElement | Element, options?: BodyScrollOptions): void;
|
|
export function enableBodyScroll(targetElement: HTMLElement | Element): void;
|
|
export function clearAllBodyScrollLocks(): void;
|
|
|
|
export as namespace bodyScrollLock;
|