3.0.33 • Published 6 months ago
@types/hashtable v3.0.33
Installation
npm install --save @types/hashtable
Summary
This package contains type definitions for jshashtable (http://www.timdown.co.uk/jshashtable/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hashtable.
index.d.ts
// Type definitions for jshashtable 3.0
// Project: http://www.timdown.co.uk/jshashtable/
// Definitions by: Sergey Gerasimov <https://github.com/gerich-home/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface IHashtable<TKey, TValue>
{
put(key: TKey, value: TValue): TValue;
putAll(hashtable: IHashtable<TKey, TValue>, conflictCallback?: (key: TKey, thisValue: TValue, value: TValue) => TValue): void;
get(key: TKey): TValue;
containsKey(key: TKey): boolean;
containsValue(value: TValue): boolean;
clear(): void;
isEmpty(): boolean;
keys(): TKey[];
values(): TValue[];
entries(): any[][];
remove(key: TKey): TValue;
size(): number;
clone(): IHashtable<TKey, TValue>;
each(callback: (key: TKey, value: TValue) => void): void;
equals(hashtable: IHashtable<TKey, TValue>): boolean;
toQueryString(): string;
}
interface IHashtableOptions<TKey> {
hashCode?: ((key: TKey) => any) | undefined;
equals?: ((key1: TKey, key2: TKey) => boolean) | undefined;
replaceDuplicateKey?: boolean | undefined;
}
interface IHashtableStatic {
new <TKey, TValue>(): IHashtable<TKey, TValue>;
new <TKey, TValue>(options: IHashtableOptions<TKey>): IHashtable<TKey, TValue>;
new <TKey, TValue>(hashCode?: (value: TValue) => any, equals?: (value1: TValue, value2: TValue) => boolean): IHashtable<TKey, TValue>;
}
declare var Hashtable: IHashtableStatic;
declare module "hashtable" {
export = Hashtable;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 14:22:47 GMT
- Dependencies: none
- Global values:
Hashtable
Credits
These definitions were written by Sergey Gerasimov.
3.0.32
7 months ago
3.0.33
6 months ago
3.0.31
8 months ago
3.0.30
3 years ago
3.0.29
4 years ago
3.0.28
8 years ago
3.0.27
8 years ago
3.0.26-alpha
8 years ago
3.0.25-alpha
8 years ago
3.0.24-alpha
8 years ago
3.0.23-alpha
8 years ago
3.0.22-alpha
8 years ago
3.0.21-alpha
8 years ago
3.0.20-alpha
8 years ago
3.0.15-alpha
8 years ago
3.0.14-alpha
8 years ago