aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorCashew <52880648+cashewnuttynuts@users.noreply.github.com>2024-06-22 03:24:21 +0700
committerGitHub <noreply@github.com>2024-06-21 20:24:21 +0000
commitd724b403f94b7fd1ecec3f6d2e4f5a1ed805c6ec (patch)
tree1f696742b75b4f8377fe3b952863af141ff6494e /types
parent1c609d972ae76f8779190d7a3621f77a664a6dec (diff)
Add diacritics normalization preprocessors for Vietnamese (#1107)
* add viet diacritics normalization * move regexp construction outside of function * fix eslint * add 'off' option * fix lint * fix type
Diffstat (limited to 'types')
-rw-r--r--types/ext/language-descriptors.d.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/types/ext/language-descriptors.d.ts b/types/ext/language-descriptors.d.ts
index 856e55b3..778445de 100644
--- a/types/ext/language-descriptors.d.ts
+++ b/types/ext/language-descriptors.d.ts
@@ -174,7 +174,9 @@ type AllTextProcessors = {
pre: CapitalizationPreprocessors;
};
vi: {
- pre: CapitalizationPreprocessors;
+ pre: CapitalizationPreprocessors & {
+ normalizeDiacritics: TextProcessor<'old' | 'new' | 'off'>;
+ };
};
yue: Record<string, never>;
zh: Record<string, never>;