$ cnpm install @types/body-scroll-lock
npm install --save @types/body-scroll-lock
This package contains type definitions for body-scroll-lock (https://github.com/willmcpo/body-scroll-lock).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-scroll-lock.
// 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;
bodyScrollLockThese definitions were written by kimcoder.
Copyright 2013 - present © cnpmjs.org | Home |