Skip to content

Commit e153376

Browse files
Declare variables separately
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 7b72bf0 commit e153376

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ export class Component<T extends HTMLElement = HTMLElement> extends BaseComponen
9696

9797
public css(...args: [string, string] | [string, string, boolean] | [Record<string, string>]): typeof this {
9898
if (args.length === 2 || args.length === 3) {
99-
const name: string = args[0],
100-
value: string = args[1],
101-
priority: boolean = args[2] ?? false;
99+
const name: string = args[0];
100+
const value: string = args[1];
101+
const priority: boolean = args[2] ?? false;
102102
this.element.style.setProperty(name, value, priority ? "important" : void 0);
103103
}
104104
else {

0 commit comments

Comments
 (0)