# @types/fleximap

> TypeScript definitions for fleximap

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

## Install

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

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.9.2 |
| Published | 2023-11-07 |
| First published | 2018-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.9.2 (latest) — 2023-11-07
- 0.9.0 (ts2.4) — 2018-12-05
- 0.9.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/fleximap`

# Summary
This package contains type definitions for fleximap (https://github.com/SocketCluster/fleximap).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fleximap.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fleximap/index.d.ts)
````ts
export type KeyChain = any;

export class FlexiMap {
    constructor(object?: any[] | object);

    get(keyChain: KeyChain): any;
    getRange(keyChain: KeyChain, fromIndex: number, toIndex: number): any;
    getRaw(keyChain: KeyChain): any;
    getAll(): any[] | object;

    count(keyChain: KeyChain): number;

    hasImmediateKey(key: string): boolean;
    hasKey(keyChain: KeyChain): boolean;
    hasType(keyChain: KeyChain, type: any): boolean;
    hasValue(keyChain: KeyChain, value: any): boolean;
    hasObject(keyChain: KeyChain, object: object): boolean;

    set(keyChain: KeyChain, value: any): any;

    add(keyChain: KeyChain, value: any): number;

    concat(keyChain: KeyChain, value: any): any;

    remove(keyChain: KeyChain): any;
    removeRange(keyChain: KeyChain, fromIndex: number, toIndex: number): any[];
    removeAll(): void;

    splice(keyChain: KeyChain, index: number, count: number, ...items: any[]): any[];

    pop(keyChain: KeyChain): any[];
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Daniel Rose](https://github.com/DanielRose).

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