Remove other usages of : any

This commit is contained in:
Alex Gleason
2024-11-22 10:28:26 -06:00
parent 4eb7ea2461
commit da82462fa2
3 changed files with 4 additions and 6 deletions

View File

@@ -47,15 +47,13 @@ export class DeepLTranslator implements DittoTranslator {
targetLanguage: LanguageCode,
opts?: { signal?: AbortSignal },
) {
const body: any = {
const body = {
text: texts,
target_lang: targetLanguage.toUpperCase(),
tag_handling: 'html',
split_sentences: '1',
source_lang: source?.toUpperCase(),
};
if (source) {
body.source_lang = source.toUpperCase();
}
const url = new URL('/v2/translate', this.baseUrl);