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

1.0.2 • Public • Published

Installation

npm install --save @types/pick-weight

Summary

This package contains type definitions for pick-weight (https://github.com/mock-end/pick-weight#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pick-weight.

index.d.ts

// Dummy function allows to avoid hard to kill or fix tslint warning
// (exporting pluginFunc will make this a non-importable module)
declare function weighted<T>(arr: T[], weights: number[]): T;
// Let allows typescript to still use ES2015 style imports
declare let y: typeof weighted;
export = y;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Roberts Slisans.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pick-weight

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

3.16 kB

Total Files

5

Last publish

Collaborators

  • types