From eb16c116458ad7dad1cde70d331e8a07d803f22b Mon Sep 17 00:00:00 2001 From: ttsukagoshi Date: Thu, 8 Feb 2024 06:48:06 +0900 Subject: [PATCH] Add `null | undefined` to `sourceText` type in `deepLTranslate()` --- src/sheetsl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sheetsl.ts b/src/sheetsl.ts index 7242751..4754785 100644 --- a/src/sheetsl.ts +++ b/src/sheetsl.ts @@ -338,7 +338,7 @@ export function translateRange(): void { * @see https://www.deepl.com/docs-api/translate-text/ */ export function deepLTranslate( - sourceText: string | string[], + sourceText: string | string[] | null | undefined, sourceLocale: string | null | undefined, targetLocale: string, ): string[] {