@cspell/cspell-types 6.24.0 → 6.25.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.
@@ -395,6 +395,13 @@
395
395
  "$ref": "#/definitions/ReplaceMap",
396
396
  "description": "Replacement pairs."
397
397
  },
398
+ "suggestWords": {
399
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
400
+ "items": {
401
+ "type": "string"
402
+ },
403
+ "type": "array"
404
+ },
398
405
  "type": {
399
406
  "$ref": "#/definitions/DictionaryFileTypes",
400
407
  "default": "S",
@@ -451,6 +458,13 @@
451
458
  "$ref": "#/definitions/ReplaceMap",
452
459
  "description": "Replacement pairs."
453
460
  },
461
+ "suggestWords": {
462
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
463
+ "items": {
464
+ "type": "string"
465
+ },
466
+ "type": "array"
467
+ },
454
468
  "type": {
455
469
  "$ref": "#/definitions/DictionaryFileTypes",
456
470
  "default": "S",
@@ -507,6 +521,13 @@
507
521
  "$ref": "#/definitions/ReplaceMap",
508
522
  "description": "Replacement pairs."
509
523
  },
524
+ "suggestWords": {
525
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
526
+ "items": {
527
+ "type": "string"
528
+ },
529
+ "type": "array"
530
+ },
510
531
  "type": {
511
532
  "$ref": "#/definitions/DictionaryFileTypes",
512
533
  "default": "S",
@@ -953,6 +974,13 @@
953
974
  },
954
975
  "type": "array"
955
976
  },
977
+ "suggestWords": {
978
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
979
+ "items": {
980
+ "type": "string"
981
+ },
982
+ "type": "array"
983
+ },
956
984
  "words": {
957
985
  "description": "List of words to be considered correct.",
958
986
  "items": {
@@ -1132,6 +1160,13 @@
1132
1160
  },
1133
1161
  "type": "array"
1134
1162
  },
1163
+ "suggestWords": {
1164
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
1165
+ "items": {
1166
+ "type": "string"
1167
+ },
1168
+ "type": "array"
1169
+ },
1135
1170
  "suggestionNumChanges": {
1136
1171
  "default": 3,
1137
1172
  "description": "The maximum number of changes allowed on a word to be considered a suggestions.\n\nFor example, appending an `s` onto `example` -> `examples` is considered 1 change.\n\nRange: between 1 and 5.",
@@ -1649,6 +1684,13 @@
1649
1684
  "description": "Delay in ms after a document has changed before checking it for spelling errors.",
1650
1685
  "type": "number"
1651
1686
  },
1687
+ "suggestWords": {
1688
+ "description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
1689
+ "items": {
1690
+ "type": "string"
1691
+ },
1692
+ "type": "array"
1693
+ },
1652
1694
  "suggestionNumChanges": {
1653
1695
  "default": 3,
1654
1696
  "description": "The maximum number of changes allowed on a word to be considered a suggestions.\n\nFor example, appending an `s` onto `example` -> `examples` is considered 1 change.\n\nRange: between 1 and 5.",
@@ -26,5 +26,19 @@ export interface InlineDictionary {
26
26
  * also in the `flagWords`.
27
27
  */
28
28
  ignoreWords?: string[];
29
+ /**
30
+ * A list of suggested replacements for words.
31
+ * Suggested words provide a way to make preferred suggestions on word replacements.
32
+ * To hint at a preferred change, but not to require it.
33
+ *
34
+ * Format of `suggestWords`
35
+ * - Single suggestion (possible auto fix)
36
+ * - `word: suggestion`
37
+ * - `word->suggestion`
38
+ * - Multiple suggestions (not auto fixable)
39
+ * - `word: first, second, third`
40
+ * - `word->first, second, third`
41
+ */
42
+ suggestWords?: string[];
29
43
  }
30
44
  //# sourceMappingURL=InlineDictionary.d.ts.map
@@ -26,5 +26,19 @@ export interface InlineDictionary {
26
26
  * also in the `flagWords`.
27
27
  */
28
28
  ignoreWords?: string[];
29
+ /**
30
+ * A list of suggested replacements for words.
31
+ * Suggested words provide a way to make preferred suggestions on word replacements.
32
+ * To hint at a preferred change, but not to require it.
33
+ *
34
+ * Format of `suggestWords`
35
+ * - Single suggestion (possible auto fix)
36
+ * - `word: suggestion`
37
+ * - `word->suggestion`
38
+ * - Multiple suggestions (not auto fixable)
39
+ * - `word: first, second, third`
40
+ * - `word->first, second, third`
41
+ */
42
+ suggestWords?: string[];
29
43
  }
30
44
  //# sourceMappingURL=InlineDictionary.d.ts.map
@@ -42,6 +42,7 @@ const ConfigFields = {
42
42
  spellCheckDelayMs: 'spellCheckDelayMs',
43
43
  suggestionNumChanges: 'suggestionNumChanges',
44
44
  suggestionsTimeout: 'suggestionsTimeout',
45
+ suggestWords: 'suggestWords',
45
46
  useGitignore: 'useGitignore',
46
47
  usePnP: 'usePnP',
47
48
  userWords: 'userWords',
@@ -26,5 +26,19 @@ export interface InlineDictionary {
26
26
  * also in the `flagWords`.
27
27
  */
28
28
  ignoreWords?: string[];
29
+ /**
30
+ * A list of suggested replacements for words.
31
+ * Suggested words provide a way to make preferred suggestions on word replacements.
32
+ * To hint at a preferred change, but not to require it.
33
+ *
34
+ * Format of `suggestWords`
35
+ * - Single suggestion (possible auto fix)
36
+ * - `word: suggestion`
37
+ * - `word->suggestion`
38
+ * - Multiple suggestions (not auto fixable)
39
+ * - `word: first, second, third`
40
+ * - `word->first, second, third`
41
+ */
42
+ suggestWords?: string[];
29
43
  }
30
44
  //# sourceMappingURL=InlineDictionary.d.ts.map
@@ -40,6 +40,7 @@ export const ConfigFields = {
40
40
  spellCheckDelayMs: 'spellCheckDelayMs',
41
41
  suggestionNumChanges: 'suggestionNumChanges',
42
42
  suggestionsTimeout: 'suggestionsTimeout',
43
+ suggestWords: 'suggestWords',
43
44
  useGitignore: 'useGitignore',
44
45
  usePnP: 'usePnP',
45
46
  userWords: 'userWords',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "6.24.0",
6
+ "version": "6.25.0",
7
7
  "description": "Types for cspell and cspell-lib",
8
8
  "type": "module",
9
9
  "main": "./dist/cjs/index.cjs",
@@ -92,7 +92,7 @@
92
92
  "jest": "^29.4.2",
93
93
  "ts-json-schema-generator": "^1.2.0",
94
94
  "typescript": "^4.9.5",
95
- "vitest": "^0.28.4"
95
+ "vitest": "^0.28.5"
96
96
  },
97
- "gitHead": "0d1e8bf9426cd0bfb814df4f61da12d8aee57ddd"
97
+ "gitHead": "fd7541605e07c43887191097d58ab58d87fac8fd"
98
98
  }