Installation
npm install --save @types/body-scroll-lock
Summary
This package contains type definitions for body-scroll-lock (https://github.com/willmcpo/body-scroll-lock).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-scroll-lock.
index.d.ts
// Type definitions for body-scroll-lock 3.1
// 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 | undefined;
allowTouchMove?: ((el: HTMLElement | Element) => boolean) | undefined;
}
export function disableBodyScroll(targetElement: HTMLElement | Element, options?: BodyScrollOptions): void;
export function enableBodyScroll(targetElement: HTMLElement | Element): void;
export function clearAllBodyScrollLocks(): void;
export as namespace bodyScrollLock;
Additional Details
- Last updated: Sat, 07 Aug 2021 08:01:22 GMT
- Dependencies: none
- Global values:
bodyScrollLock
Credits
These definitions were written by kimcoder.