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.