From 0ac1299e0b88a6e6cd2a11aacb8199a0aa63d95c Mon Sep 17 00:00:00 2001 From: Mu-An Chiou Date: Wed, 3 Jun 2020 18:22:54 -0400 Subject: [PATCH] Add return type --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index ea74de9..5337344 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,7 @@ type State = { const states = new WeakMap() export default class AutoCheckElement extends HTMLElement { - connectedCallback() { + connectedCallback(): void { const input = this.input if (!input) return @@ -24,7 +24,7 @@ export default class AutoCheckElement extends HTMLElement { input.spellcheck = false } - disconnectedCallback() { + disconnectedCallback(): void { const input = this.input if (!input) return @@ -37,7 +37,7 @@ export default class AutoCheckElement extends HTMLElement { input.setCustomValidity('') } - attributeChangedCallback(name: string) { + attributeChangedCallback(name: string): void { if (name === 'required') { const input = this.input if (!input) return