Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
noImplicitAny and strict
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 5, 2021
1 parent 43b1d75 commit cf1cac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/select-list-view.ts
@@ -1,10 +1,11 @@
import { Disposable, CompositeDisposable, TextEditor, CommandEvent } from 'atom'
// @ts-ignore Merge https://github.com/atom/etch/pull/90
import etch from 'etch'
const $ = etch.dom
import fuzzaldrin from 'fuzzaldrin'

// TODO: etch types
export type EtchElement = HTMLElement
type EtchScheduler = any

import { SelectListProperties } from './select-list-properties'

Expand All @@ -24,7 +25,7 @@ export default class SelectListView {
private selectionIndex: number | undefined
private refs: any;

static setScheduler (scheduler) {
static setScheduler (scheduler: EtchScheduler) {
etch.setScheduler(scheduler)
}

Expand Down Expand Up @@ -87,7 +88,7 @@ export default class SelectListView {
this.refs.queryEditor.element.focus()
}

didLoseFocus (event) {
didLoseFocus (event: {relatedTarget: Node}) {
if (this.didClickItemsList || this.element.contains(event.relatedTarget)) {
this.didClickItemsList = false
this.refs.queryEditor.element.focus()
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"strict": false,
"strict": true,
"strictNullChecks": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noImplicitAny": false,
"noImplicitAny": true,
"noImplicitThis": true,
"noFallthroughCasesInSwitch": true,
"declaration": true,
Expand Down

0 comments on commit cf1cac7

Please sign in to comment.