Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ac1299

Browse files
committed
Add return type
1 parent 293eea9 commit 0ac1299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type State = {
1010
const states = new WeakMap<AutoCheckElement, State>()
1111

1212
export default class AutoCheckElement extends HTMLElement {
13-
connectedCallback() {
13+
connectedCallback(): void {
1414
const input = this.input
1515
if (!input) return
1616

@@ -24,7 +24,7 @@ export default class AutoCheckElement extends HTMLElement {
2424
input.spellcheck = false
2525
}
2626

27-
disconnectedCallback() {
27+
disconnectedCallback(): void {
2828
const input = this.input
2929
if (!input) return
3030

@@ -37,7 +37,7 @@ export default class AutoCheckElement extends HTMLElement {
3737
input.setCustomValidity('')
3838
}
3939

40-
attributeChangedCallback(name: string) {
40+
attributeChangedCallback(name: string): void {
4141
if (name === 'required') {
4242
const input = this.input
4343
if (!input) return

0 commit comments

Comments
 (0)