# @types/hashset

> TypeScript definitions for hashset

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

## Install

```sh
npm install @types/hashset
pnpm add @types/hashset
yarn add @types/hashset
bun add @types/hashset
```

## 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 | 3.0.32 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/hashtable](https://npm.io/package/@types/hashtable.md) *

## Recent versions

- 3.0.32 (latest) — 2023-11-07
- 3.0.29 (ts3.0) — 2020-05-15
- 3.0.28 (ts2.0) — 2016-09-19
- 3.0.31 — 2023-10-18
- 3.0.30 — 2023-09-16
- 3.0.27 — 2016-07-14
- 3.0.26-alpha — 2016-07-08
- 3.0.25-alpha — 2016-07-04
- 3.0.24-alpha — 2016-07-02
- 3.0.23-alpha — 2016-07-01
- 3.0.22-alpha — 2016-07-01
- 3.0.21-alpha — 2016-05-25
- 3.0.20-alpha — 2016-05-20
- 3.0.15-alpha — 2016-05-19
- 3.0.14-alpha — 2016-05-17

## README

# Installation
> `npm install --save @types/hashset`

# Summary
This package contains type definitions for hashset (http://www.timdown.co.uk/jshashtable/jshashset.html).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hashset.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hashset/index.d.ts)
````ts
/// <reference types="hashtable" />

interface IHashSet<TValue> {
    add(value: TValue): void;
    addAll(arr: TValue[]): void;
    contains(value: TValue): boolean;

    clear(): void;
    isEmpty(): boolean;
    values(): TValue[];

    remove(value: TValue): void;
    size(): number;

    clone(): IHashSet<TValue>;

    isSubsetOf(set: IHashSet<TValue>): boolean;
    intersection(set: IHashSet<TValue>): IHashSet<TValue>;
    union(set: IHashSet<TValue>): IHashSet<TValue>;
    complement(set: IHashSet<TValue>): IHashSet<TValue>;
}

interface IHashSetStatic {
    new<TValue>(): IHashSet<TValue>;
    new<TValue>(options: IHashtableOptions<TValue>): IHashSet<TValue>;
    new<TValue>(
        hashCode?: (value: TValue) => any,
        equals?: (value1: TValue, value2: TValue) => boolean,
    ): IHashSet<TValue>;
}

declare var HashSet: IHashSetStatic;

declare module "hashset" {
    export = HashSet;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/hashtable](https://npmjs.com/package/@types/hashtable)

# Credits
These definitions were written by [Sergey Gerasimov](https://github.com/gerich-home).

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