Skip to content

Commit ad42ce4

Browse files
committed
Fixes type error
1 parent 73a4363 commit ad42ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/platform/plugins/shared/fields_metadata/common/hashed_cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface IHashedCache<KeyType, ValueType> {
1414
reset(): void;
1515
}
1616

17-
export class HashedCache<KeyType, ValueType> {
17+
export class HashedCache<KeyType extends object, ValueType> {
1818
private cache: LRUCache<string, ValueType>;
1919

2020
constructor(options: LRUCache.Options<string, ValueType> = { max: 500 }) {

0 commit comments

Comments
 (0)