Re-enable array-type

This commit is contained in:
Oliver Blanthorn 2020-06-18 21:57:16 +01:00
parent 7e386f87b8
commit 2abb740153
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 6 additions and 6 deletions

View file

@ -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"
}

10
src/tridactyl.d.ts vendored
View file

@ -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<Array<{name: string, isDefault: boolean, alias?: string, faviconURL?: string}>>
}
// Stop typedoc complaining about toBeAll.