From 2abb7401534eeeb3f0a712f9bb858611fa2f3b78 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Thu, 18 Jun 2020 21:57:16 +0100 Subject: [PATCH] Re-enable `array-type` --- .eslintrc.js | 2 +- src/tridactyl.d.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b3e118ca..ab0a9841 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -40,7 +40,7 @@ module.exports = { "sonarjs/no-unused-collection": "off", //"error", "@typescript-eslint/adjacent-overload-signatures": "error", "@typescript-eslint/array-type": [ - "off", //"error", + "error", { "default": "array-simple" } diff --git a/src/tridactyl.d.ts b/src/tridactyl.d.ts index 5811b138..43add7b2 100644 --- a/src/tridactyl.d.ts +++ b/src/tridactyl.d.ts @@ -26,21 +26,21 @@ interface Window { // https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/find/find interface findResult { count: number - rangeData: { + rangeData: Array<{ framePos: number startTextNodePos: number endTextNodePos: number startOffset: number endOffset: number text: string - }[] + }> rectData: { - rectsAndTexts: { + rectsAndTexts: Array<{ top: number left: number bottom: number right: number - }[] + }> textList: string[] } } @@ -218,7 +218,7 @@ declare function html( declare namespace browser.search { function search(searchProperties: {query: string, engine?: string, tabId?: number}): void - function get(): Promise<{name: string, isDefault: boolean, alias?: string, faviconURL?: string}[]> + function get(): Promise> } // Stop typedoc complaining about toBeAll.