fix: type fixed

This commit is contained in:
Revone 2023-11-25 22:33:38 +08:00
parent f9f9df81f5
commit 982152abc0
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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
}