mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
606 B
TypeScript
21 lines
606 B
TypeScript
// Type definitions for viewability-helper 1.0
|
|
// Project: https://github.com/outbrain/viewabilityhelper
|
|
// Definitions by: Liron Zluf <https://github.com/lironzluf>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
export interface Options {
|
|
callbackParams?: any[];
|
|
rootMargin?: string;
|
|
intersectionPercentage?: number;
|
|
scrollDimmer?: number;
|
|
unobserve?: boolean;
|
|
threshold?: number[];
|
|
}
|
|
|
|
export class ViewabilityHelper {
|
|
constructor(element: Element | HTMLElement, callback: () => void, options?: Options);
|
|
|
|
observe(): void;
|
|
}
|