# @types/pick-weight

> TypeScript definitions for pick-weight

Latest version **1.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/pick-weight
pnpm add @types/pick-weight
yarn add @types/pick-weight
bun add @types/pick-weight
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-11-07 |
| First published | 2017-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/pick-weight
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pick-weight
- npm.io page: https://npm.io/package/@types/pick-weight

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts2.0) — 2017-08-09
- 1.0.1 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pick-weight/index.d.ts)
````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](https://github.com/rsxdalv).

---
_Source: https://npm.io/package/@types/pick-weight · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
