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

1.0.4 • Public • Published

Installation

npm install --save @types/bidirectional-map

Summary

This package contains type definitions for bidirectional-map (https://github.com/educastellano/bidirectional-map).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bidirectional-map.

index.d.ts

export default class BiMap<TValue> {
    constructor(object?: { [i: string]: TValue });
    size: number;

    set(key: string, value: TValue): void;
    get(key: string): TValue | undefined;
    getKey(value: TValue): string | undefined;
    clear(): void;
    delete(key: string): void;
    deleteValue(value: TValue): void;
    entries(): IterableIterator<[string, TValue]>;
    has(key: string): boolean;
    hasValue(value: TValue): boolean;
    keys(): IterableIterator<string>;
    values(): IterableIterator<TValue>;
}

Additional Details

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

Credits

These definitions were written by Helen Anderson.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/bidirectional-map

Weekly Downloads

1,874

Version

1.0.4

License

MIT

Unpacked Size

3.68 kB

Total Files

5

Last publish

Collaborators

  • types