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.
- package/LICENSE.md +1 -1
- package/dist/index.cjs.js +596 -604
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.mjs +585 -587
- package/dist/index.mjs.map +3 -3
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/types.d.ts +13 -9
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +34 -22
- package/dist/types/utils.d.ts.map +1 -1
- package/docs/api/README.md +2 -0
- package/docs/api/functions/convertJMdict.md +1 -1
- package/docs/api/functions/convertJawiktionaryAsync.md +1 -1
- package/docs/api/functions/convertJawiktionarySync.md +1 -1
- package/docs/api/functions/convertKanjiDic.md +1 -1
- package/docs/api/functions/convertKradFile.md +1 -1
- package/docs/api/functions/convertRadkFile.md +1 -1
- package/docs/api/functions/convertTanakaCorpus.md +1 -1
- package/docs/api/functions/convertTanakaCorpusWithFurigana.md +1 -1
- package/docs/api/functions/createEntryMaps.md +1 -1
- package/docs/api/functions/generateAnkiNote.md +1 -1
- package/docs/api/functions/generateAnkiNotesFile.md +1 -1
- package/docs/api/functions/getKanji.md +4 -4
- package/docs/api/functions/getKanjiExtended.md +1 -1
- package/docs/api/functions/getValidForms.md +1 -1
- package/docs/api/functions/getWord.md +4 -4
- package/docs/api/functions/getWordDefinitions.md +4 -4
- package/docs/api/functions/getWordDefinitionsWithFurigana.md +1 -1
- package/docs/api/functions/hiraganaToKatakana.md +27 -0
- package/docs/api/functions/katakanaToHiragana.md +27 -0
- package/docs/api/interfaces/DefaultNoteInfo.md +4 -4
- package/docs/api/interfaces/Definition.md +6 -2
- package/docs/api/interfaces/DictKanjiMisc.md +1 -1
- package/docs/api/interfaces/DictWord.md +3 -3
- package/docs/api/interfaces/Grammar.md +16 -16
- package/docs/api/interfaces/GrammarMeaning.md +3 -3
- package/docs/api/interfaces/JaWiktionaryEntry.md +2 -2
- package/docs/api/interfaces/Kana.md +11 -11
- package/docs/api/interfaces/Kanji.md +24 -24
- package/docs/api/interfaces/KanjiComponent.md +3 -3
- package/docs/api/interfaces/KanjiForm.md +4 -4
- package/docs/api/interfaces/NoteAndTag.md +3 -3
- package/docs/api/interfaces/NoteHeaderKeys.md +7 -7
- package/docs/api/interfaces/Phrase.md +5 -5
- package/docs/api/interfaces/Radical.md +16 -16
- package/docs/api/interfaces/Reading.md +5 -5
- package/docs/api/interfaces/ResultEntry.md +10 -10
- package/docs/api/interfaces/Translation.md +3 -3
- package/docs/api/interfaces/UsefulRegExps.md +8 -8
- package/docs/api/interfaces/Word.md +15 -15
- package/docs/api/interfaces/WordDefinitionPair.md +4 -4
- package/docs/api/type-aliases/Dict.md +1 -1
- package/docs/api/type-aliases/EntryType.md +1 -1
- package/docs/api/type-aliases/JLPT.md +1 -1
- package/docs/api/type-aliases/Result.md +1 -1
- package/package.json +11 -6
- package/src/constants.ts +1225 -0
- package/src/index.ts +3 -0
- package/src/types.ts +1056 -0
- package/src/utils.ts +3018 -0
- package/tsconfig.json +60 -0
- 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
|
+
}
|