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

0.2.3 • Public • Published

Installation

npm install --save @types/bind-args

Summary

This package contains type definitions for bind-args (https://github.com/kerryChen95/bind-args#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bind-args.

index.d.ts

// TODO: Once TypeScript gets optional length tuples, types can be more accurate
declare function bindArgs<T extends (...args: any) => any>(
    func: T,
    ...params: Array<Parameters<T>[number]>
): (...args: Array<Parameters<T>[number]>) => ReturnType<T>;

export = bindArgs;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Rajas Paranjpe.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/bind-args

      Weekly Downloads

      7

      Version

      0.2.3

      License

      MIT

      Unpacked Size

      3.13 kB

      Total Files

      5

      Last publish

      Collaborators

      • types