mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Re-enable array-type
This commit is contained in:
parent
7e386f87b8
commit
2abb740153
2 changed files with 6 additions and 6 deletions
|
@ -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
10
src/tridactyl.d.ts
vendored
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue