Skip to content

Commit 7f3ad37

Browse files
committed
Add return type for eslint
1 parent d31c39d commit 7f3ad37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/task-lists-element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ export default class TaskListsElement extends HTMLElement {
2525
observers.set(this, new MutationObserver(syncState.bind(null, this)))
2626
}
2727

28-
connectedCallback() {
28+
connectedCallback(): void {
2929
const observer = observers.get(this)
3030
if (observer) {
3131
observer.observe(this, {childList: true, subtree: true})
3232
}
3333
syncState(this)
3434
}
3535

36-
disconnectedCallback() {
36+
disconnectedCallback(): void {
3737
const observer = observers.get(this)
3838
if (observer) {
3939
observer.disconnect()
@@ -68,7 +68,7 @@ export default class TaskListsElement extends HTMLElement {
6868
return ['disabled']
6969
}
7070

71-
attributeChangedCallback(name: string, oldValue: string, newValue: string) {
71+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void {
7272
if (oldValue === newValue) return
7373

7474
switch (name) {

0 commit comments

Comments
 (0)