chore: bump version (#3955)

This commit is contained in:
Alex Yang
2023-08-25 11:52:33 -05:00
committed by GitHub
parent 98b8fbc8cf
commit 7906b7bc5f
38 changed files with 2184 additions and 2231 deletions

View File

@@ -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);
}