(columns: number, key: string)
| 83 | } |
| 84 | |
| 85 | function readSharedHeight(columns: number, key: string): number | undefined { |
| 86 | const cacheKey = sharedHeightCacheKey(columns, key) |
| 87 | const hit = sharedHeightCache.get(cacheKey) |
| 88 | if (hit !== undefined) { |
| 89 | sharedHeightCache.delete(cacheKey) |
| 90 | sharedHeightCache.set(cacheKey, hit) |
| 91 | } |
| 92 | return hit |
| 93 | } |
| 94 | |
| 95 | function writeSharedHeight(columns: number, key: string, height: number): void { |
| 96 | const cacheKey = sharedHeightCacheKey(columns, key) |
no test coverage detected