taraskevizer 7.0.3 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,15 +1,63 @@
1
+ declare const gobj: {
2
+ readonly г: "ґ";
3
+ readonly Г: "Ґ";
4
+ readonly ґ: "г";
5
+ readonly Ґ: "Г";
6
+ };
7
+
8
+ declare const wordlist: (readonly [RegExp, string])[];
9
+
1
10
  type Dict<T = RegExp> = readonly (readonly [T, string])[];
2
11
  type WritableDict<T = RegExp> = [T, string][];
3
12
  type RawDict = WritableDict<string | RegExp>;
4
13
 
5
- type ModifyObjectType<T, TResultObj> = T extends object ? T extends (...args: any[]) => any ? T : TResultObj : T;
6
- type DeepPartialReadonly<T> = ModifyObjectType<T, {
7
- readonly [P in keyof T]?: DeepPartialReadonly<T[P]>;
8
- }>;
14
+ declare const noSoften: Dict;
15
+ declare const softeners: Dict;
16
+
17
+ declare const cyrillic: {
18
+ lower: never[];
19
+ upper: never[];
20
+ };
21
+
22
+ declare const latin: {
23
+ lower: (readonly [RegExp, string])[];
24
+ upper: (readonly [RegExp, string])[];
25
+ };
26
+ declare const latinJi: {
27
+ lower: (readonly [RegExp, string])[];
28
+ upper: (readonly [RegExp, string])[];
29
+ };
30
+
31
+ declare const arabic: {
32
+ lower: Dict;
33
+ };
34
+
35
+ declare const index$3_arabic: typeof arabic;
36
+ declare const index$3_cyrillic: typeof cyrillic;
37
+ declare const index$3_latin: typeof latin;
38
+ declare const index$3_latinJi: typeof latinJi;
39
+ declare namespace index$3 {
40
+ export { index$3_arabic as arabic, index$3_cyrillic as cyrillic, index$3_latin as latin, index$3_latinJi as latinJi };
41
+ }
42
+
9
43
  type Alphabet = {
10
44
  lower: Dict;
11
45
  upper?: Dict;
12
46
  };
47
+
48
+ type index$2_Alphabet = Alphabet;
49
+ declare const index$2_gobj: typeof gobj;
50
+ declare const index$2_noSoften: typeof noSoften;
51
+ declare const index$2_softeners: typeof softeners;
52
+ declare const index$2_wordlist: typeof wordlist;
53
+ declare namespace index$2 {
54
+ export { type index$2_Alphabet as Alphabet, index$3 as alphabets, index$2_gobj as gobj, index$2_noSoften as noSoften, index$2_softeners as softeners, index$2_wordlist as wordlist };
55
+ }
56
+
57
+ type ModifyObjectType<T, TResultObj> = T extends object ? T extends (...args: any[]) => any ? T : TResultObj : T;
58
+ type DeepPartialReadonly<T> = ModifyObjectType<T, {
59
+ readonly [P in keyof T]?: DeepPartialReadonly<T[P]>;
60
+ }>;
13
61
  type OptionJ = 0 | 1 | 2;
14
62
  type Variation = 0 | 1 | 2;
15
63
  type TaraskOptions = {
@@ -30,38 +78,6 @@ type ExtendedDict = readonly (readonly [
30
78
  string | ((...substrings: string[]) => string)
31
79
  ])[];
32
80
 
33
- declare const latinLettersLowerCase: (readonly [RegExp, string])[];
34
- declare const latinLettersUpperCase: (readonly [RegExp, string])[];
35
- declare const latinLettersLowerCaseJi: (readonly [RegExp, string])[];
36
- declare const latinLettersUpperCaseJi: (readonly [RegExp, string])[];
37
-
38
- declare const arabLetters: Dict;
39
-
40
- declare const gobj: {
41
- readonly г: "ґ";
42
- readonly Г: "Ґ";
43
- readonly ґ: "г";
44
- readonly Ґ: "Г";
45
- };
46
-
47
- declare const wordlist: (readonly [RegExp, string])[];
48
-
49
- declare const noSoften: Dict;
50
- declare const softeners: Dict;
51
-
52
- declare const index$2_arabLetters: typeof arabLetters;
53
- declare const index$2_gobj: typeof gobj;
54
- declare const index$2_latinLettersLowerCase: typeof latinLettersLowerCase;
55
- declare const index$2_latinLettersLowerCaseJi: typeof latinLettersLowerCaseJi;
56
- declare const index$2_latinLettersUpperCase: typeof latinLettersUpperCase;
57
- declare const index$2_latinLettersUpperCaseJi: typeof latinLettersUpperCaseJi;
58
- declare const index$2_noSoften: typeof noSoften;
59
- declare const index$2_softeners: typeof softeners;
60
- declare const index$2_wordlist: typeof wordlist;
61
- declare namespace index$2 {
62
- export { index$2_arabLetters as arabLetters, index$2_gobj as gobj, index$2_latinLettersLowerCase as latinLettersLowerCase, index$2_latinLettersLowerCaseJi as latinLettersLowerCaseJi, index$2_latinLettersUpperCase as latinLettersUpperCase, index$2_latinLettersUpperCaseJi as latinLettersUpperCaseJi, index$2_noSoften as noSoften, index$2_softeners as softeners, index$2_wordlist as wordlist };
63
- }
64
-
65
81
  declare class TaraskConfig {
66
82
  constructor(options?: DeepPartialReadonly<{
67
83
  general: TaraskOptions;
@@ -172,24 +188,6 @@ declare namespace index$1 {
172
188
 
173
189
  declare const tarask: (text: string, pipeline: TaraskStep<any>[], cfg?: TaraskConfig) => string;
174
190
 
175
- declare const ALPHABET: {
176
- LATIN: {
177
- lower: (readonly [RegExp, string])[];
178
- upper: (readonly [RegExp, string])[];
179
- };
180
- LATIN_JI: {
181
- lower: (readonly [RegExp, string])[];
182
- upper: (readonly [RegExp, string])[];
183
- };
184
- ARABIC: {
185
- lower: Dict;
186
- };
187
- CYRILLIC: {
188
- lower: never[];
189
- upper: never[];
190
- };
191
- };
192
-
193
191
  declare const abcOnlyPipeline: (TaraskStep<{
194
192
  noFixArr: string[];
195
193
  }> | TaraskStep<{
@@ -231,7 +229,7 @@ declare const ansiColorWrappers: {
231
229
  };
232
230
 
233
231
  declare const dictFrom: {
234
- raw: (dict: RawDict) => Dict;
232
+ raw: (dict: RawDict, additionalFlags?: string) => Dict;
235
233
  nonGlobal: (dict: WritableDict) => Dict;
236
234
  };
237
235
 
@@ -247,4 +245,4 @@ declare namespace index {
247
245
  export { index_afterTarask as afterTarask, index_ansiColorWrappers as ansiColorWrappers, index_dictFrom as dictFrom, index_highlightDiff as highlightDiff, index_htmlWrappers as htmlWrappers, index_replaceG as replaceG, index_replaceWithDict as replaceWithDict, index_restoreCase as restoreCase };
248
246
  }
249
247
 
250
- export { ALPHABET, type HtmlOptions, type NonHtmlOptions, REPLACE_J, TaraskConfig, type TaraskOptions, VARIATION, abcOnlyPipeline, index$2 as dicts, htmlPipeline, index as lib, plainTextPipeline, index$1 as steps, tarask };
248
+ export { type Alphabet, type HtmlOptions, type NonHtmlOptions, REPLACE_J, TaraskConfig, type TaraskOptions, VARIATION, abcOnlyPipeline, index$3 as alphabets, index$2 as dicts, gobj, htmlPipeline, index as lib, noSoften, plainTextPipeline, softeners, index$1 as steps, tarask, wordlist };