mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 02:40:23 +02:00
* i18n first steps * i18n internal, toolbox, api for tools * namespaced api * tn, t * tn in block tunes * join toolbox and inlineTools under toolNames * translations * make enum toolTypes * Update block.ts * Update src/components/core.ts Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com> * add more types * rm tn * export i18n types * upd bundle * fix tabulation * Add type-safe namespaces * upd * Improve example * Update toolbox.ts * improve examplle * upd * fix typo * Add comments for complex types Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com> Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
16 lines
445 B
JSON
16 lines
445 B
JSON
{
|
|
"compilerOptions" : {
|
|
"sourceMap": true,
|
|
"target": "es2017",
|
|
"declaration": false,
|
|
"moduleResolution": "node", // This resolution strategy attempts to mimic the Node.js module resolution mechanism at runtime
|
|
"lib": ["dom", "es2017", "es2018"],
|
|
|
|
// allows to import .json files for i18n
|
|
"resolveJsonModule": true,
|
|
|
|
// allows to omit export default in .json files
|
|
"allowSyntheticDefaultImports": true
|
|
}
|
|
}
|