Installation
npm install --save @types/viewability-helper
Summary
This package contains type definitions for viewability-helper (https://github.com/outbrain/viewabilityhelper).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/viewability-helper.
index.d.ts
export interface Options {
callbackParams?: any[] | undefined;
rootMargin?: string | undefined;
intersectionPercentage?: number | undefined;
scrollDimmer?: number | undefined;
unobserve?: boolean | undefined;
threshold?: number[] | undefined;
}
export class ViewabilityHelper {
constructor(element: Element | HTMLElement, callback: () => void, options?: Options);
observe(): void;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Liron Zluf.