mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-23 12:54:04 +00:00
fix: type fixed
This commit is contained in:
parent
f9f9df81f5
commit
982152abc0
|
@ -20,7 +20,7 @@ export class HashMap<K = any, V = any> {
|
|||
protected _objHashFn: (key: K) => object;
|
||||
|
||||
|
||||
constructor(elements?: Iterable<[K, V]>, options: HashMapOptions<K, V> = {
|
||||
constructor(elements?: Iterable<[K, V]>, options: HashMapOptions<K> = {
|
||||
|
||||
hashFn: (key: K) => String(key),
|
||||
objHashFn: (key: K) => (<object>key)
|
||||
|
|
|
@ -5,7 +5,7 @@ export type HashMapLinkedNode<K, V> = {
|
|||
prev: HashMapLinkedNode<K, V>;
|
||||
};
|
||||
|
||||
export type HashMapOptions<K, V> = {
|
||||
export type HashMapOptions<K> = {
|
||||
hashFn: (key: K) => string;
|
||||
objHashFn: (key: K) => object
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue