@types/body-scroll-lock
TypeScript icon, indicating that this package has built-in type declarations

3.1.2 • Public • Published

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

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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by kimcoder.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/body-scroll-lock

Weekly Downloads

217,918

Version

3.1.2

License

MIT

Unpacked Size

3.46 kB

Total Files

5

Last publish

Collaborators

  • types