Skip to content

Commit d071704

Browse files
committed
Set return type
1 parent 63f84ba commit d071704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DetailsMenuElement extends HTMLElement {
2323
this.setAttribute('src', value)
2424
}
2525

26-
connectedCallback() {
26+
connectedCallback(): void {
2727
if (!this.hasAttribute('role')) this.setAttribute('role', 'menu')
2828

2929
const details = this.parentElement
@@ -52,7 +52,7 @@ class DetailsMenuElement extends HTMLElement {
5252
states.set(this, {subscriptions, loaded: false, isComposing: false})
5353
}
5454

55-
disconnectedCallback() {
55+
disconnectedCallback(): void {
5656
const state = states.get(this)
5757
if (!state) return
5858
states.delete(this)

0 commit comments

Comments
 (0)