@cspell/cspell-types 10.2.0-alpha.7 → 10.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/cspell.schema.json +18 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +2 -2
package/cspell.schema.json
CHANGED
|
@@ -1346,6 +1346,12 @@
|
|
|
1346
1346
|
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
|
|
1347
1347
|
"since": "9.1.0"
|
|
1348
1348
|
},
|
|
1349
|
+
"useIntlWordSegmentation": {
|
|
1350
|
+
"description": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
|
|
1351
|
+
"markdownDescription": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
|
|
1352
|
+
"since": "10.2.0",
|
|
1353
|
+
"type": "boolean"
|
|
1354
|
+
},
|
|
1349
1355
|
"words": {
|
|
1350
1356
|
"description": "List of words to be considered correct.",
|
|
1351
1357
|
"items": {
|
|
@@ -1638,6 +1644,12 @@
|
|
|
1638
1644
|
"markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
|
|
1639
1645
|
"since": "9.1.0"
|
|
1640
1646
|
},
|
|
1647
|
+
"useIntlWordSegmentation": {
|
|
1648
|
+
"description": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
|
|
1649
|
+
"markdownDescription": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
|
|
1650
|
+
"since": "10.2.0",
|
|
1651
|
+
"type": "boolean"
|
|
1652
|
+
},
|
|
1641
1653
|
"usePnP": {
|
|
1642
1654
|
"default": false,
|
|
1643
1655
|
"description": "Packages managers like Yarn 2 use a `.pnp.cjs` file to assist in loading packages stored in the repository.\n\nWhen true, the spell checker will search up the directory structure for the existence of a PnP file and load it.",
|
|
@@ -2383,6 +2395,12 @@
|
|
|
2383
2395
|
"markdownDescription": "Tells the spell checker to load `.gitignore` files and skip files that match the globs in the `.gitignore` files found.",
|
|
2384
2396
|
"type": "boolean"
|
|
2385
2397
|
},
|
|
2398
|
+
"useIntlWordSegmentation": {
|
|
2399
|
+
"description": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
|
|
2400
|
+
"markdownDescription": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
|
|
2401
|
+
"since": "10.2.0",
|
|
2402
|
+
"type": "boolean"
|
|
2403
|
+
},
|
|
2386
2404
|
"usePnP": {
|
|
2387
2405
|
"default": false,
|
|
2388
2406
|
"description": "Packages managers like Yarn 2 use a `.pnp.cjs` file to assist in loading packages stored in the repository.\n\nWhen true, the spell checker will search up the directory structure for the existence of a PnP file and load it.",
|
package/dist/index.d.mts
CHANGED
|
@@ -1729,6 +1729,13 @@ interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings, Unknow
|
|
|
1729
1729
|
* @since 9.7.0
|
|
1730
1730
|
*/
|
|
1731
1731
|
substitutions?: Substitutions;
|
|
1732
|
+
/**
|
|
1733
|
+
* Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
|
|
1734
|
+
* The locale used for the segmentation is based on the {@link language} setting.
|
|
1735
|
+
*
|
|
1736
|
+
* @since 10.2.0
|
|
1737
|
+
*/
|
|
1738
|
+
useIntlWordSegmentation?: boolean;
|
|
1732
1739
|
}
|
|
1733
1740
|
interface LanguageSetting extends LanguageSettingFilterFields, BaseSetting {}
|
|
1734
1741
|
interface LanguageSettingFilterFields extends LanguageSettingFilterFieldsPreferred, LanguageSettingFilterFieldsDeprecated {}
|
package/dist/index.d.ts
CHANGED
|
@@ -1729,6 +1729,13 @@ interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings, Unknow
|
|
|
1729
1729
|
* @since 9.7.0
|
|
1730
1730
|
*/
|
|
1731
1731
|
substitutions?: Substitutions;
|
|
1732
|
+
/**
|
|
1733
|
+
* Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
|
|
1734
|
+
* The locale used for the segmentation is based on the {@link language} setting.
|
|
1735
|
+
*
|
|
1736
|
+
* @since 10.2.0
|
|
1737
|
+
*/
|
|
1738
|
+
useIntlWordSegmentation?: boolean;
|
|
1732
1739
|
}
|
|
1733
1740
|
interface LanguageSetting extends LanguageSettingFilterFields, BaseSetting {}
|
|
1734
1741
|
interface LanguageSettingFilterFields extends LanguageSettingFilterFieldsPreferred, LanguageSettingFilterFieldsDeprecated {}
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,7 @@ const ConfigFields = {
|
|
|
52
52
|
suggestWords: "suggestWords",
|
|
53
53
|
unknownWords: "unknownWords",
|
|
54
54
|
useGitignore: "useGitignore",
|
|
55
|
+
useIntlWordSegmentation: "useIntlWordSegmentation",
|
|
55
56
|
usePnP: "usePnP",
|
|
56
57
|
userWords: "userWords",
|
|
57
58
|
validateDirectives: "validateDirectives",
|
|
@@ -148,6 +149,7 @@ const mergeDefinitionFunctions = {
|
|
|
148
149
|
suggestWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
|
|
149
150
|
unknownWords: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
150
151
|
useGitignore: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
152
|
+
useIntlWordSegmentation: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
151
153
|
usePnP: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
152
154
|
userWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
|
|
153
155
|
validateDirectives: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
package/dist/index.mjs
CHANGED
|
@@ -51,6 +51,7 @@ const ConfigFields = {
|
|
|
51
51
|
suggestWords: "suggestWords",
|
|
52
52
|
unknownWords: "unknownWords",
|
|
53
53
|
useGitignore: "useGitignore",
|
|
54
|
+
useIntlWordSegmentation: "useIntlWordSegmentation",
|
|
54
55
|
usePnP: "usePnP",
|
|
55
56
|
userWords: "userWords",
|
|
56
57
|
validateDirectives: "validateDirectives",
|
|
@@ -147,6 +148,7 @@ const mergeDefinitionFunctions = {
|
|
|
147
148
|
suggestWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
|
|
148
149
|
unknownWords: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
149
150
|
useGitignore: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
151
|
+
useIntlWordSegmentation: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
150
152
|
usePnP: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
|
151
153
|
userWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
|
|
152
154
|
validateDirectives: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "10.2.0
|
|
7
|
+
"version": "10.2.0",
|
|
8
8
|
"description": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"node": ">=22.18.0"
|
|
86
86
|
},
|
|
87
87
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "2d310afc22fa500b1be07e3c2e2d3897ec00daad"
|
|
89
89
|
}
|