From 4f24982112e7d4ad7b3f35c21926eafd6f0c8ff3 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 3 Dec 2023 11:17:57 -0500 Subject: Update imports --- types/ext/dictionary-importer.d.ts | 2 +- types/ext/dictionary-worker.d.ts | 2 +- types/ext/display-audio.d.ts | 4 ++-- types/ext/display.d.ts | 8 ++++---- types/ext/event-listener-collection.d.ts | 2 +- types/ext/generic-setting-controller.d.ts | 2 +- types/ext/popup.d.ts | 6 +++--- types/ext/settings-controller.d.ts | 6 +++--- types/ext/simple-dom-parser.d.ts | 5 ++--- types/ext/text-scanner.d.ts | 2 +- types/ext/translation-internal.d.ts | 2 +- types/ext/translator.d.ts | 4 ++-- 12 files changed, 22 insertions(+), 23 deletions(-) (limited to 'types/ext') diff --git a/types/ext/dictionary-importer.d.ts b/types/ext/dictionary-importer.d.ts index de85d04a..5ae20dd1 100644 --- a/types/ext/dictionary-importer.d.ts +++ b/types/ext/dictionary-importer.d.ts @@ -15,8 +15,8 @@ * along with this program. If not, see . */ -import type * as Ajv from 'ajv'; import type * as ZipJS from '@zip.js/zip.js'; +import type * as Ajv from 'ajv'; import type * as DictionaryData from './dictionary-data'; import type * as DictionaryDatabase from './dictionary-database'; import type * as StructuredContent from './structured-content'; diff --git a/types/ext/dictionary-worker.d.ts b/types/ext/dictionary-worker.d.ts index 570d37cd..17030691 100644 --- a/types/ext/dictionary-worker.d.ts +++ b/types/ext/dictionary-worker.d.ts @@ -16,8 +16,8 @@ */ import type * as Core from './core'; -import type * as DictionaryImporter from './dictionary-importer'; import type * as DictionaryDatabase from './dictionary-database'; +import type * as DictionaryImporter from './dictionary-importer'; export type InvokeDetails = { complete: boolean; diff --git a/types/ext/display-audio.d.ts b/types/ext/display-audio.d.ts index 759e5ee6..c9590cf2 100644 --- a/types/ext/display-audio.d.ts +++ b/types/ext/display-audio.d.ts @@ -15,10 +15,10 @@ * along with this program. If not, see . */ +import type {TextToSpeechAudio} from '../../ext/js/media/text-to-speech-audio'; import type * as Audio from './audio'; -import type * as Settings from './settings'; import type * as AudioDownloader from './audio-downloader'; -import type {TextToSpeechAudio} from '../../ext/js/media/text-to-speech-audio'; +import type * as Settings from './settings'; export type CacheItem = { sourceMap: Map; diff --git a/types/ext/display.d.ts b/types/ext/display.d.ts index 533fc441..aa0f0353 100644 --- a/types/ext/display.d.ts +++ b/types/ext/display.d.ts @@ -15,16 +15,16 @@ * along with this program. If not, see . */ +import type {DisplayContentManager} from '../../ext/js/display/display-content-manager'; +import type {HotkeyHelpController} from '../../ext/js/input/hotkey-help-controller'; +import type {JapaneseUtil} from '../../ext/js/language/sandbox/japanese-util'; +import type {TextScanner} from '../../ext/js/language/text-scanner'; import type * as Core from './core'; import type * as Dictionary from './dictionary'; import type * as Extension from './extension'; import type * as Settings from './settings'; import type * as TextScannerTypes from './text-scanner'; import type * as TextSource from './text-source'; -import type {DisplayContentManager} from '../../ext/js/display/display-content-manager'; -import type {HotkeyHelpController} from '../../ext/js/input/hotkey-help-controller'; -import type {JapaneseUtil} from '../../ext/js/language/sandbox/japanese-util'; -import type {TextScanner} from '../../ext/js/language/text-scanner'; export type HistoryMode = 'clear' | 'overwrite' | 'new'; diff --git a/types/ext/event-listener-collection.d.ts b/types/ext/event-listener-collection.d.ts index eee05658..988baa76 100644 --- a/types/ext/event-listener-collection.d.ts +++ b/types/ext/event-listener-collection.d.ts @@ -15,8 +15,8 @@ * along with this program. If not, see . */ -import type * as Core from './core'; import type {EventDispatcher} from '../../ext/js/core'; +import type * as Core from './core'; export type EventListenerFunction = (...args: Core.SafeAny[]) => unknown; diff --git a/types/ext/generic-setting-controller.d.ts b/types/ext/generic-setting-controller.d.ts index 5e3435c5..f7a2be5f 100644 --- a/types/ext/generic-setting-controller.d.ts +++ b/types/ext/generic-setting-controller.d.ts @@ -15,8 +15,8 @@ * along with this program. If not, see . */ -import type * as SettingsModifications from './settings-modifications'; import type * as DocumentUtil from './document-util'; +import type * as SettingsModifications from './settings-modifications'; export type TransformType = TransformData['type']; diff --git a/types/ext/popup.d.ts b/types/ext/popup.d.ts index aaeb676a..65725f96 100644 --- a/types/ext/popup.d.ts +++ b/types/ext/popup.d.ts @@ -15,12 +15,12 @@ * along with this program. If not, see . */ -import type * as DocumentUtil from './document-util'; -import type * as Settings from './settings'; -import type {FrameOffsetForwarder} from '../../ext/js/comm/frame-offset-forwarder'; import type {Popup} from '../../ext/js/app/popup'; import type {PopupProxy} from '../../ext/js/app/popup-proxy'; import type {PopupWindow} from '../../ext/js/app/popup-window'; +import type {FrameOffsetForwarder} from '../../ext/js/comm/frame-offset-forwarder'; +import type * as DocumentUtil from './document-util'; +import type * as Settings from './settings'; export type PopupAny = Popup | PopupWindow | PopupProxy; diff --git a/types/ext/settings-controller.d.ts b/types/ext/settings-controller.d.ts index 37399bc3..697de878 100644 --- a/types/ext/settings-controller.d.ts +++ b/types/ext/settings-controller.d.ts @@ -15,12 +15,12 @@ * along with this program. If not, see . */ -import type * as Core from './core'; -import type * as Settings from './settings'; -import type * as SettingsModifications from './settings-modifications'; import type {DictionaryController} from '../../ext/js/pages/settings/dictionary-controller'; import type {ScanInputsController} from '../../ext/js/pages/settings/scan-inputs-controller'; import type {ScanInputsSimpleController} from '../../ext/js/pages/settings/scan-inputs-simple-controller'; +import type * as Core from './core'; +import type * as Settings from './settings'; +import type * as SettingsModifications from './settings-modifications'; export type PageExitPrevention = { end: () => void; diff --git a/types/ext/simple-dom-parser.d.ts b/types/ext/simple-dom-parser.d.ts index 5fefe69d..d9ae3898 100644 --- a/types/ext/simple-dom-parser.d.ts +++ b/types/ext/simple-dom-parser.d.ts @@ -16,9 +16,8 @@ */ export type { - Document as Parse5Document, - Element as Parse5Element, - ChildNode as Parse5ChildNode, + ChildNode as Parse5ChildNode, Document as Parse5Document, + Element as Parse5Element } from 'parse5/dist/tree-adapters/default'; /** diff --git a/types/ext/text-scanner.d.ts b/types/ext/text-scanner.d.ts index 5ff62819..4ec7f204 100644 --- a/types/ext/text-scanner.d.ts +++ b/types/ext/text-scanner.d.ts @@ -15,12 +15,12 @@ * along with this program. If not, see . */ +import type {TextScanner} from '../../ext/js/language/text-scanner'; import type * as Dictionary from './dictionary'; import type * as Display from './display'; import type * as Input from './input'; import type * as Settings from './settings'; import type * as TextSource from './text-source'; -import type {TextScanner} from '../../ext/js/language/text-scanner'; export type SearchResultDetail = { documentTitle: string; diff --git a/types/ext/translation-internal.d.ts b/types/ext/translation-internal.d.ts index 00f51b05..784a5979 100644 --- a/types/ext/translation-internal.d.ts +++ b/types/ext/translation-internal.d.ts @@ -15,8 +15,8 @@ * along with this program. If not, see . */ -import type * as Translation from './translation'; import type * as DictionaryDatabase from './dictionary-database'; +import type * as Translation from './translation'; export type TextDeinflectionOptions = [ textReplacements: Translation.FindTermsTextReplacement[] | null, diff --git a/types/ext/translator.d.ts b/types/ext/translator.d.ts index 838ae171..39d4be81 100644 --- a/types/ext/translator.d.ts +++ b/types/ext/translator.d.ts @@ -15,10 +15,10 @@ * along with this program. If not, see . */ -import type * as Dictionary from './dictionary'; -import type * as DictionaryDatabaseTypes from './dictionary-database'; import type {DictionaryDatabase} from '../../ext/js/language/dictionary-database'; import type {JapaneseUtil} from '../../ext/js/language/sandbox/japanese-util'; +import type * as Dictionary from './dictionary'; +import type * as DictionaryDatabaseTypes from './dictionary-database'; export type ConstructorDetails = { /** An instance of JapaneseUtil. */ -- cgit v1.2.3