1.0.4 • Published 6 months ago

@types/viewability-helper v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 months ago

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

// 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[] | 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: Fri, 02 Jul 2021 18:05:04 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Liron Zluf.

1.0.4

6 months ago

1.0.3

7 months ago

1.0.2

3 years ago

1.0.1

5 years ago

1.0.0

7 years ago