henkan 2.2.5 → 2.3.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.
Files changed (63) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/index.cjs.js +596 -604
  3. package/dist/index.cjs.js.map +3 -3
  4. package/dist/index.mjs +585 -587
  5. package/dist/index.mjs.map +3 -3
  6. package/dist/types/constants.d.ts +1 -0
  7. package/dist/types/constants.d.ts.map +1 -1
  8. package/dist/types/types.d.ts +13 -9
  9. package/dist/types/types.d.ts.map +1 -1
  10. package/dist/types/utils.d.ts +34 -22
  11. package/dist/types/utils.d.ts.map +1 -1
  12. package/docs/api/README.md +2 -0
  13. package/docs/api/functions/convertJMdict.md +1 -1
  14. package/docs/api/functions/convertJawiktionaryAsync.md +1 -1
  15. package/docs/api/functions/convertJawiktionarySync.md +1 -1
  16. package/docs/api/functions/convertKanjiDic.md +1 -1
  17. package/docs/api/functions/convertKradFile.md +1 -1
  18. package/docs/api/functions/convertRadkFile.md +1 -1
  19. package/docs/api/functions/convertTanakaCorpus.md +1 -1
  20. package/docs/api/functions/convertTanakaCorpusWithFurigana.md +1 -1
  21. package/docs/api/functions/createEntryMaps.md +1 -1
  22. package/docs/api/functions/generateAnkiNote.md +1 -1
  23. package/docs/api/functions/generateAnkiNotesFile.md +1 -1
  24. package/docs/api/functions/getKanji.md +4 -4
  25. package/docs/api/functions/getKanjiExtended.md +1 -1
  26. package/docs/api/functions/getValidForms.md +1 -1
  27. package/docs/api/functions/getWord.md +4 -4
  28. package/docs/api/functions/getWordDefinitions.md +4 -4
  29. package/docs/api/functions/getWordDefinitionsWithFurigana.md +1 -1
  30. package/docs/api/functions/hiraganaToKatakana.md +27 -0
  31. package/docs/api/functions/katakanaToHiragana.md +27 -0
  32. package/docs/api/interfaces/DefaultNoteInfo.md +4 -4
  33. package/docs/api/interfaces/Definition.md +6 -2
  34. package/docs/api/interfaces/DictKanjiMisc.md +1 -1
  35. package/docs/api/interfaces/DictWord.md +3 -3
  36. package/docs/api/interfaces/Grammar.md +16 -16
  37. package/docs/api/interfaces/GrammarMeaning.md +3 -3
  38. package/docs/api/interfaces/JaWiktionaryEntry.md +2 -2
  39. package/docs/api/interfaces/Kana.md +11 -11
  40. package/docs/api/interfaces/Kanji.md +24 -24
  41. package/docs/api/interfaces/KanjiComponent.md +3 -3
  42. package/docs/api/interfaces/KanjiForm.md +4 -4
  43. package/docs/api/interfaces/NoteAndTag.md +3 -3
  44. package/docs/api/interfaces/NoteHeaderKeys.md +7 -7
  45. package/docs/api/interfaces/Phrase.md +5 -5
  46. package/docs/api/interfaces/Radical.md +16 -16
  47. package/docs/api/interfaces/Reading.md +5 -5
  48. package/docs/api/interfaces/ResultEntry.md +10 -10
  49. package/docs/api/interfaces/Translation.md +3 -3
  50. package/docs/api/interfaces/UsefulRegExps.md +8 -8
  51. package/docs/api/interfaces/Word.md +15 -15
  52. package/docs/api/interfaces/WordDefinitionPair.md +4 -4
  53. package/docs/api/type-aliases/Dict.md +1 -1
  54. package/docs/api/type-aliases/EntryType.md +1 -1
  55. package/docs/api/type-aliases/JLPT.md +1 -1
  56. package/docs/api/type-aliases/Result.md +1 -1
  57. package/package.json +11 -6
  58. package/src/constants.ts +1225 -0
  59. package/src/index.ts +3 -0
  60. package/src/types.ts +1056 -0
  61. package/src/utils.ts +3018 -0
  62. package/tsconfig.json +60 -0
  63. package/tsconfig.types.json +9 -0
package/tsconfig.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "compilerOptions": {
3
+ // Modules
4
+ "target": "esnext",
5
+ "lib": ["ESNext"],
6
+ "module": "nodenext",
7
+ "moduleResolution": "nodenext",
8
+ "allowUmdGlobalAccess": true,
9
+ "resolveJsonModule": true,
10
+ "rootDir": "src",
11
+
12
+ // Type checking
13
+ "allowUnreachableCode": false,
14
+ "allowUnusedLabels": false,
15
+ "exactOptionalPropertyTypes": true,
16
+ "noFallthroughCasesInSwitch": true,
17
+ "noUncheckedIndexedAccess": true,
18
+ "useUnknownInCatchVariables": true,
19
+ "alwaysStrict": true,
20
+ "noImplicitAny": true,
21
+ "noImplicitOverride": true,
22
+ "noImplicitReturns": true,
23
+ "noImplicitThis": true,
24
+ "noImplicitUseStrict": false,
25
+ "noUnusedLocals": true,
26
+ "noUnusedParameters": true,
27
+ "strict": true,
28
+ "strictBindCallApply": true,
29
+ "strictFunctionTypes": true,
30
+ "strictNullChecks": true,
31
+ "strictPropertyInitialization": true,
32
+
33
+ // Emit
34
+ "declaration": true,
35
+ "declarationMap": true,
36
+ "preserveConstEnums": true,
37
+ "outDir": "dist",
38
+ "sourceMap": true,
39
+ "inlineSources": true,
40
+
41
+ // JavaScript support
42
+ "allowJs": false,
43
+ "checkJs": false,
44
+
45
+ // Editor support
46
+ "disableSizeLimit": true,
47
+
48
+ // Interlop constraints
49
+ "esModuleInterop": true,
50
+ "allowSyntheticDefaultImports": true,
51
+ "preserveSymlinks": true,
52
+
53
+ // Output formatting
54
+ "pretty": true,
55
+
56
+ // Completeness
57
+ "skipLibCheck": true
58
+ },
59
+ "include": ["src"]
60
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "emitDeclarationOnly": true,
6
+ "outDir": "dist/types"
7
+ },
8
+ "include": ["src"]
9
+ }