From 655e94ef91941d93e5362cb0998726ca44ddfb5c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 10 Oct 2024 14:14:29 -0500 Subject: [PATCH] DittoTranslator: move `provider` to top of interface --- src/interfaces/DittoTranslator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/DittoTranslator.ts b/src/interfaces/DittoTranslator.ts index 426e1428..7e5e1d50 100644 --- a/src/interfaces/DittoTranslator.ts +++ b/src/interfaces/DittoTranslator.ts @@ -2,6 +2,8 @@ import type { LanguageCode } from 'iso-639-1'; /** DittoTranslator class, used for status translation. */ export interface DittoTranslator { + /** Provider name, eg `DeepL.com` */ + provider: string; /** Translate the 'content' into 'targetLanguage'. */ translate( /** Texts to translate. */ @@ -13,6 +15,4 @@ export interface DittoTranslator { /** Custom options. */ opts?: { signal?: AbortSignal }, ): Promise<{ results: string[]; source_lang: LanguageCode }>; - /** Provider name, eg `DeepL.com` */ - provider: string; }