We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31557a0 commit 361f568Copy full SHA for 361f568
src/utils/generics.ts
@@ -5,7 +5,7 @@ export const assignPartial = <T extends object>(instance: T, params?: Partial<T>
5
return;
6
}
7
8
- Object.entries(params).forEach(([key, value]) => {
+ Object.entries(params).forEach(([key, value]: [string, any]) => {
9
// Check if the key exists on the instance
10
if (Reflect.has(instance, key)) {
11
0 commit comments