Fix typing issue

This commit is contained in:
thepaperpilot 2022-11-08 10:07:19 -06:00 committed by Replit user
parent 1d611b9af7
commit f4bba2e44b

View file

@ -38,7 +38,7 @@ export function processComputable<T, S extends keyof ComputableKeysOf<T>>(
// @ts-ignore
obj[key] = computed(computable.bind(obj));
} else if (isFunction(computable)) {
obj[key] = computable.bind(obj) as T[S];
obj[key] = computable.bind(obj) as unknown as T[S];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(obj[key] as any)[DoNotCache] = true;
}