@types/viewability-helper
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/viewability-helper

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

3.45 kB

Total Files

5

Last publish

Collaborators

  • types