Skip to content

Commit 30962de

Browse files
committed
Fix build issue
1 parent e9f429c commit 30962de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/framework/memo-cache/src/getCacheEntry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type CacheEntry<T, TGet = any> = {
2222
* @param key - which key of that entry to ensure the value for
2323
*/
2424
function ensureAndReturn(entry: CacheEntry<any>, key: keyof CacheEntry<any>): CacheEntry<any> | { [key: string]: CacheEntry<any> } {
25-
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
25+
if ((key as string) === '__proto__' || (key as string) === 'constructor' || (key as string) === 'prototype') {
2626
throw new Error('Invalid key');
2727
}
2828
return (entry[key] = entry[key] || {});

0 commit comments

Comments
 (0)