Skip to content

Commit 079c515

Browse files
committed
fix row.assign to use Partial<T>
1 parent a9c37fe commit 079c515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/GoogleSpreadsheetRow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ export class GoogleSpreadsheetRow<T extends Record<string, any> = Record<string,
5050
this._rawData[index] = val;
5151
}
5252
/** set multiple values in the row at once from an object */
53-
assign(obj: T) {
53+
assign(obj: Partial<T>) {
5454
// eslint-disable-next-line no-restricted-syntax, guard-for-in
55-
for (const key in obj) this.set(key, obj[key]);
55+
for (const key in obj) this.set(key, obj[key] as any);
5656
}
5757

5858
/** return raw object of row data */

0 commit comments

Comments
 (0)