taraskevizer 0.0.1 → 0.0.3
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 +11 -23
- package/dist/index.js +1950 -1994
- package/dist/index.mjs +1938 -1973
- package/package.json +19 -4
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/.github/workflows/main.yml +0 -19
- package/.github/workflows/publish.yml +0 -33
- package/.idea/codeStyles/Project.xml +0 -70
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -8
- package/.idea/taraskevizer.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.prettierignore +0 -3
- package/.prettierrc +0 -5
- package/esbuild-plugins/no-debug-files.js +0 -8
- package/json/g.json +0 -1
- package/json/latinLetters.json +0 -46
- package/json/latinLettersUpperCase.json +0 -51
- package/json/softers.json +0 -12
- package/json/wordlist.json +0 -1359
- package/postprocess/index.js +0 -6
- package/postprocess/json-generator.js +0 -39
- package/src/dict.ts +0 -1982
- package/src/index.ts +0 -3
- package/src/tarask.ts +0 -258
- package/src/tools.debug.ts +0 -20
- package/src/tsconfig.json +0 -5
- package/src/types.ts +0 -15
- package/tsup.config.js +0 -24
package/dist/index.d.ts
CHANGED
|
@@ -1,41 +1,29 @@
|
|
|
1
1
|
type Alphabet = 0 | 1 | 2;
|
|
2
2
|
type J = 0 | 1 | 2;
|
|
3
3
|
type HtmlOptions = {
|
|
4
|
-
|
|
4
|
+
g: boolean;
|
|
5
5
|
};
|
|
6
6
|
type TaraskOptions = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
abc: Alphabet;
|
|
8
|
+
j: J;
|
|
9
|
+
html: false | HtmlOptions;
|
|
10
10
|
};
|
|
11
|
-
type Promisify<T> = T extends (...args: infer TArgs) => infer TReturn
|
|
12
|
-
? (...args: TArgs) => Promise<TReturn>
|
|
13
|
-
: never;
|
|
11
|
+
type Promisify<T> = T extends (...args: infer TArgs) => infer TReturn ? (...args: TArgs) => Promise<TReturn> : never;
|
|
14
12
|
type Tarask = (text: string, options: TaraskOptions) => string;
|
|
15
13
|
type TaraskAsync = Promisify<Tarask>;
|
|
16
14
|
type Dict = Record<string, RegExp>;
|
|
17
15
|
type AlphabetDependentDict = {
|
|
18
|
-
|
|
16
|
+
[key in Alphabet]?: Dict;
|
|
19
17
|
};
|
|
20
18
|
|
|
21
19
|
declare const taraskSync: Tarask;
|
|
22
20
|
declare const tarask: TaraskAsync;
|
|
23
21
|
|
|
24
22
|
declare const gobj: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
readonly г: "ґ";
|
|
24
|
+
readonly Г: "Ґ";
|
|
25
|
+
readonly ґ: "г";
|
|
26
|
+
readonly Ґ: "Г";
|
|
29
27
|
};
|
|
30
28
|
|
|
31
|
-
export {
|
|
32
|
-
AlphabetDependentDict,
|
|
33
|
-
Dict,
|
|
34
|
-
HtmlOptions,
|
|
35
|
-
Tarask,
|
|
36
|
-
TaraskAsync,
|
|
37
|
-
TaraskOptions,
|
|
38
|
-
gobj,
|
|
39
|
-
tarask,
|
|
40
|
-
taraskSync,
|
|
41
|
-
};
|
|
29
|
+
export { AlphabetDependentDict, Dict, HtmlOptions, Tarask, TaraskAsync, TaraskOptions, gobj, tarask, taraskSync };
|