From c4f248b0f95050fb373c898289b506d042a3731b Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 2 Feb 2024 21:55:53 -0500 Subject: Improve translator test inputs typing (#601) * Add type identifier * Improve type correctness of translator test utilities --- types/ext/translation.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'types/ext') diff --git a/types/ext/translation.d.ts b/types/ext/translation.d.ts index 604dbda6..c9a61be0 100644 --- a/types/ext/translation.d.ts +++ b/types/ext/translation.d.ts @@ -107,7 +107,7 @@ export type FindTermsOptions = { /** * An iterable sequence of text replacements to be applied during the term lookup process. */ - textReplacements: (FindTermsTextReplacement[] | null)[]; + textReplacements: FindTermsTextReplacements; /** * The mapping of dictionaries to search for terms in. * The key is the dictionary name. @@ -157,6 +157,11 @@ export type FindTermsTextReplacement = { replacement: string; }; +/** + * Multiple text replacements. + */ +export type FindTermsTextReplacements = (FindTermsTextReplacement[] | null)[]; + /** * Details about a dictionary. */ -- cgit v1.2.3