mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore: bump version (#3955)
This commit is contained in:
@@ -26,11 +26,7 @@ function pickAndBind<T extends object, U extends keyof T>(
|
||||
): { [K in U]: T[K] } {
|
||||
return keys.reduce((acc, key) => {
|
||||
const prop = obj[key];
|
||||
acc[key] =
|
||||
typeof prop === 'function'
|
||||
? // @ts-expect-error - a hack to bind the function
|
||||
prop.bind(obj)
|
||||
: prop;
|
||||
acc[key] = typeof prop === 'function' ? prop.bind(obj) : prop;
|
||||
return acc;
|
||||
}, {} as any);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user