Skip to content

Commit

Permalink
Add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed Jun 3, 2020
1 parent 293eea9 commit 0ac1299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type State = {
const states = new WeakMap<AutoCheckElement, State>()

export default class AutoCheckElement extends HTMLElement {
connectedCallback() {
connectedCallback(): void {
const input = this.input
if (!input) return

Expand All @@ -24,7 +24,7 @@ export default class AutoCheckElement extends HTMLElement {
input.spellcheck = false
}

disconnectedCallback() {
disconnectedCallback(): void {
const input = this.input
if (!input) return

Expand All @@ -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
Expand Down

0 comments on commit 0ac1299

Please sign in to comment.