Skip to content

Commit

Permalink
Add null | undefined to sourceText type
Browse files Browse the repository at this point in the history
in `deepLTranslate()`
  • Loading branch information
ttsukagoshi committed Feb 7, 2024
1 parent 226e3e6 commit eb16c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sheetsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] {
Expand Down

0 comments on commit eb16c11

Please sign in to comment.