Skip to content

Commit

Permalink
Fix one line error
Browse files Browse the repository at this point in the history
  • Loading branch information
mollykreis committed Dec 12, 2024
1 parent 4ef7f10 commit 0366c55
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ async function setup(props?: Partial<NumberField>): Promise<{
const { element, connect, disconnect, parent } = await fixture(FASTNumberField());

if (props) {
// eslint-disable-next-line guard-for-in
for (const key in props) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any
(element as any)[key] = (props as any)[key].toString();
if (Object.prototype.hasOwnProperty.call(props, key)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any
(element as any)[key] = (props as any)[key].toString();
}
}
}

Expand Down

0 comments on commit 0366c55

Please sign in to comment.