taraskevizer 1.1.2 → 1.2.0
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/README.md +75 -1
- package/bin/index.js +99 -0
- package/dist/index.cjs +2191 -0
- package/dist/index.d.ts +12 -5
- package/dist/index.js +1636 -1635
- package/package.json +7 -2
- package/dist/index.mjs +0 -2134
package/dist/index.d.ts
CHANGED
|
@@ -4,17 +4,24 @@ type DeepPartial<T> = T extends object ? {
|
|
|
4
4
|
} : T;
|
|
5
5
|
type Alphabet = 0 | 1 | 2;
|
|
6
6
|
type J = 0 | 1 | 2;
|
|
7
|
+
type Variation = 0 | 1 | 2;
|
|
8
|
+
type NonHtmlOptions = {
|
|
9
|
+
nodeColors: boolean;
|
|
10
|
+
h: boolean;
|
|
11
|
+
variations: Variation;
|
|
12
|
+
};
|
|
7
13
|
type HtmlOptions = {
|
|
8
14
|
g: boolean;
|
|
9
15
|
};
|
|
10
|
-
type TaraskOptions = {
|
|
16
|
+
type TaraskOptions = DeepPartial<{
|
|
11
17
|
abc: Alphabet;
|
|
12
18
|
j: J;
|
|
13
19
|
html: false | HtmlOptions;
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
nonHtml: false | NonHtmlOptions;
|
|
21
|
+
}>;
|
|
22
|
+
type Tarask = (text: string, options?: TaraskOptions) => string;
|
|
16
23
|
type TaraskAsync = Promisify<Tarask>;
|
|
17
|
-
type Dict =
|
|
24
|
+
type Dict<T = RegExp> = [string, T][];
|
|
18
25
|
type AlphabetDependentDict = {
|
|
19
26
|
[key in Alphabet]?: Dict;
|
|
20
27
|
};
|
|
@@ -29,4 +36,4 @@ declare const gobj: {
|
|
|
29
36
|
readonly Ґ: "Г";
|
|
30
37
|
};
|
|
31
38
|
|
|
32
|
-
export { AlphabetDependentDict, Dict, HtmlOptions, Tarask, TaraskAsync, TaraskOptions, gobj, tarask, taraskSync };
|
|
39
|
+
export { AlphabetDependentDict, Dict, HtmlOptions, NonHtmlOptions, Tarask, TaraskAsync, TaraskOptions, gobj, tarask, taraskSync };
|