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

1.0.2 • Public • Published

Installation

npm install --save @types/throttleit

Summary

This package contains type definitions for throttleit (https://github.com/component/throttle).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/throttleit.

index.d.ts

type AnyFunction = (...args: any[]) => any;

/**
 * Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
 *
 * @param func Function to wrap.
 * @param wait Number of milliseconds that must elapse between `func` invocations.
 * @return A new function that wraps the `func` function passed in.
 */
declare function throttle<GFunction extends AnyFunction>(
    fn: GFunction,
    wait: number,
): GFunction;

export = throttle;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Ifiok Jr..

/@types/throttleit/

    Package Sidebar

    Install

    npm i @types/throttleit

    Weekly Downloads

    2,496

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.47 kB

    Total Files

    5

    Last publish

    Collaborators

    • types