minishouyin/node_modules/rc-virtual-list/lib/utils/CacheMap.d.ts
2025-11-12 11:35:57 +08:00

17 lines
457 B
TypeScript

import type React from 'react';
declare class CacheMap {
maps: Record<string, number>;
id: number;
diffRecords: Map<React.Key, number>;
constructor();
set(key: React.Key, value: number): void;
get(key: React.Key): number;
/**
* CacheMap will record the key changed.
* To help to know what's update in the next render.
*/
resetRecord(): void;
getRecord(): Map<React.Key, number>;
}
export default CacheMap;