aboutsummaryrefslogtreecommitdiff
path: root/types/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-02 21:55:53 -0500
committerGitHub <noreply@github.com>2024-02-03 02:55:53 +0000
commitc4f248b0f95050fb373c898289b506d042a3731b (patch)
treef221b6dfd6b806b5fa0f26b9e88c6feb764f60fd /types/ext
parent5a2bc4e542b7f22d1e6a4ba318cfcdc33817d34a (diff)
Improve translator test inputs typing (#601)
* Add type identifier * Improve type correctness of translator test utilities
Diffstat (limited to 'types/ext')
-rw-r--r--types/ext/translation.d.ts7
1 files changed, 6 insertions, 1 deletions
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.
@@ -158,6 +158,11 @@ export type FindTermsTextReplacement = {
};
/**
+ * Multiple text replacements.
+ */
+export type FindTermsTextReplacements = (FindTermsTextReplacement[] | null)[];
+
+/**
* Details about a dictionary.
*/
export type FindTermDictionary = {