@cspell/cspell-types 5.15.3 → 5.18.0-alpha.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 +246 -16
- package/dist/CSpellSettingsDef.d.ts +20 -10
- package/dist/DictionaryInformation.d.ts +286 -0
- package/dist/DictionaryInformation.js +3 -0
- package/dist/configFields.js +1 -0
- package/dist/features.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/suggestionCostsDef.d.ts +28 -11
- package/package.json +4 -4
package/cspell.schema.json
CHANGED
|
@@ -30,6 +30,32 @@
|
|
|
30
30
|
],
|
|
31
31
|
"type": "string"
|
|
32
32
|
},
|
|
33
|
+
"CharacterSet": {
|
|
34
|
+
"description": "This is a set of characters that can include `-` or `|`\n- `-` - indicates a range of characters: `a-c` => `abc`\n- `|` - is a group separator, indicating that the characters on either side are not related.",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"CharacterSetCosts": {
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"characters": {
|
|
41
|
+
"$ref": "#/definitions/CharacterSet",
|
|
42
|
+
"description": "This is a set of characters that can include `-` or `|`\n- `-` - indicates a range of characters: `a-c` => `abc`\n- `|` - is a group separator, indicating that the characters on either side are not related."
|
|
43
|
+
},
|
|
44
|
+
"cost": {
|
|
45
|
+
"description": "the cost to insert / delete / replace / swap the characters in a group",
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
"penalty": {
|
|
49
|
+
"description": "The penalty cost to apply if the accent is used. This is used to discourage",
|
|
50
|
+
"type": "number"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"characters",
|
|
55
|
+
"cost"
|
|
56
|
+
],
|
|
57
|
+
"type": "object"
|
|
58
|
+
},
|
|
33
59
|
"CostMapDefInsDel": {
|
|
34
60
|
"additionalProperties": false,
|
|
35
61
|
"properties": {
|
|
@@ -42,9 +68,13 @@
|
|
|
42
68
|
"type": "number"
|
|
43
69
|
},
|
|
44
70
|
"map": {
|
|
45
|
-
"description": "The set of substrings to map, these are generally single character strings.\n\nMultiple sets can be defined by using a `|` to separate them.\n\nExample: `\"eéê|aåá\"` contains two different sets.\n\nTo add a multi-character substring use `()`.\n\nExample: `\"f(ph)(gh)\"` results in the following set: `f`, `ph`, `gh`.",
|
|
71
|
+
"description": "The set of substrings to map, these are generally single character strings.\n\nMultiple sets can be defined by using a `|` to separate them.\n\nExample: `\"eéê|aåá\"` contains two different sets.\n\nTo add a multi-character substring use `()`.\n\nExample: `\"f(ph)(gh)\"` results in the following set: `f`, `ph`, `gh`.\n\n- To match the beginning of a word, use `^`: `\"(^I)\"\"`.\n- To match the end of a word, use `$`: `\"(e$)(ing$)\"`.",
|
|
46
72
|
"type": "string"
|
|
47
73
|
},
|
|
74
|
+
"penalty": {
|
|
75
|
+
"description": "Add a penalty to the final cost. This is used to discourage certain suggestions.\n\nExample: ```yaml # Match adding/removing `-` to the end of a word. map: \"$(-$)\" replace: 50 penalty: 100 ```\n\nThis makes adding a `-` to the end of a word more expensive.\n\nThink of it as taking the toll way for speed but getting the bill later.",
|
|
76
|
+
"type": "number"
|
|
77
|
+
},
|
|
48
78
|
"replace": {
|
|
49
79
|
"description": "The cost to replace of of the substrings in the map with another substring in the map. Example: Map['a', 'i'] This would be the cost to substitute `a` with `i`: Like `bat` to `bit` or the reverse.",
|
|
50
80
|
"type": "number"
|
|
@@ -72,9 +102,13 @@
|
|
|
72
102
|
"type": "number"
|
|
73
103
|
},
|
|
74
104
|
"map": {
|
|
75
|
-
"description": "The set of substrings to map, these are generally single character strings.\n\nMultiple sets can be defined by using a `|` to separate them.\n\nExample: `\"eéê|aåá\"` contains two different sets.\n\nTo add a multi-character substring use `()`.\n\nExample: `\"f(ph)(gh)\"` results in the following set: `f`, `ph`, `gh`.",
|
|
105
|
+
"description": "The set of substrings to map, these are generally single character strings.\n\nMultiple sets can be defined by using a `|` to separate them.\n\nExample: `\"eéê|aåá\"` contains two different sets.\n\nTo add a multi-character substring use `()`.\n\nExample: `\"f(ph)(gh)\"` results in the following set: `f`, `ph`, `gh`.\n\n- To match the beginning of a word, use `^`: `\"(^I)\"\"`.\n- To match the end of a word, use `$`: `\"(e$)(ing$)\"`.",
|
|
76
106
|
"type": "string"
|
|
77
107
|
},
|
|
108
|
+
"penalty": {
|
|
109
|
+
"description": "Add a penalty to the final cost. This is used to discourage certain suggestions.\n\nExample: ```yaml # Match adding/removing `-` to the end of a word. map: \"$(-$)\" replace: 50 penalty: 100 ```\n\nThis makes adding a `-` to the end of a word more expensive.\n\nThink of it as taking the toll way for speed but getting the bill later.",
|
|
110
|
+
"type": "number"
|
|
111
|
+
},
|
|
78
112
|
"replace": {
|
|
79
113
|
"description": "The cost to replace of of the substrings in the map with another substring in the map. Example: Map['a', 'i'] This would be the cost to substitute `a` with `i`: Like `bat` to `bit` or the reverse.",
|
|
80
114
|
"type": "number"
|
|
@@ -102,9 +136,13 @@
|
|
|
102
136
|
"type": "number"
|
|
103
137
|
},
|
|
104
138
|
"map": {
|
|
105
|
-
"description": "The set of substrings to map, these are generally single character strings.\n\nMultiple sets can be defined by using a `|` to separate them.\n\nExample: `\"eéê|aåá\"` contains two different sets.\n\nTo add a multi-character substring use `()`.\n\nExample: `\"f(ph)(gh)\"` results in the following set: `f`, `ph`, `gh`.",
|
|
139
|
+
"description": "The set of substrings to map, these are generally single character strings.\n\nMultiple sets can be defined by using a `|` to separate them.\n\nExample: `\"eéê|aåá\"` contains two different sets.\n\nTo add a multi-character substring use `()`.\n\nExample: `\"f(ph)(gh)\"` results in the following set: `f`, `ph`, `gh`.\n\n- To match the beginning of a word, use `^`: `\"(^I)\"\"`.\n- To match the end of a word, use `$`: `\"(e$)(ing$)\"`.",
|
|
106
140
|
"type": "string"
|
|
107
141
|
},
|
|
142
|
+
"penalty": {
|
|
143
|
+
"description": "Add a penalty to the final cost. This is used to discourage certain suggestions.\n\nExample: ```yaml # Match adding/removing `-` to the end of a word. map: \"$(-$)\" replace: 50 penalty: 100 ```\n\nThis makes adding a `-` to the end of a word more expensive.\n\nThink of it as taking the toll way for speed but getting the bill later.",
|
|
144
|
+
"type": "number"
|
|
145
|
+
},
|
|
108
146
|
"replace": {
|
|
109
147
|
"description": "The cost to replace of of the substrings in the map with another substring in the map. Example: Map['a', 'i'] This would be the cost to substitute `a` with `i`: Like `bat` to `bit` or the reverse.",
|
|
110
148
|
"type": "number"
|
|
@@ -142,6 +180,9 @@
|
|
|
142
180
|
{
|
|
143
181
|
"$ref": "#/definitions/DictionaryDefinitionCustom"
|
|
144
182
|
},
|
|
183
|
+
{
|
|
184
|
+
"$ref": "#/definitions/DictionaryDefinitionAugmented"
|
|
185
|
+
},
|
|
145
186
|
{
|
|
146
187
|
"$ref": "#/definitions/DictionaryDefinitionAlternate"
|
|
147
188
|
}
|
|
@@ -175,10 +216,6 @@
|
|
|
175
216
|
"$ref": "#/definitions/ReplaceMap",
|
|
176
217
|
"description": "Replacement pairs."
|
|
177
218
|
},
|
|
178
|
-
"suggestionEditCosts": {
|
|
179
|
-
"$ref": "#/definitions/SuggestionCostsDefs",
|
|
180
|
-
"description": "Used in making suggestions. The lower the value, the more likely the suggestion will be near the top of the suggestion list.\n\nAdded with `v5.16.0`."
|
|
181
|
-
},
|
|
182
219
|
"type": {
|
|
183
220
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
184
221
|
"default": "S",
|
|
@@ -195,6 +232,49 @@
|
|
|
195
232
|
],
|
|
196
233
|
"type": "object"
|
|
197
234
|
},
|
|
235
|
+
"DictionaryDefinitionAugmented": {
|
|
236
|
+
"additionalProperties": false,
|
|
237
|
+
"description": "Used to provide extra data related to the dictionary",
|
|
238
|
+
"properties": {
|
|
239
|
+
"description": {
|
|
240
|
+
"description": "Optional description.",
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"dictionaryInformation": {
|
|
244
|
+
"$ref": "#/definitions/DictionaryInformation"
|
|
245
|
+
},
|
|
246
|
+
"name": {
|
|
247
|
+
"$ref": "#/definitions/DictionaryId",
|
|
248
|
+
"description": "This is the name of a dictionary.\n\nName Format:\n- Must contain at least 1 number or letter.\n- Spaces are allowed.\n- Leading and trailing space will be removed.\n- Names ARE case-sensitive.\n- Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`."
|
|
249
|
+
},
|
|
250
|
+
"noSuggest": {
|
|
251
|
+
"description": "Indicate that suggestions should not come from this dictionary. Words in this dictionary are considered correct, but will not be used when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in this dictionary, it will be removed from the set of possible suggestions.",
|
|
252
|
+
"type": "boolean"
|
|
253
|
+
},
|
|
254
|
+
"path": {
|
|
255
|
+
"$ref": "#/definitions/DictionaryPath",
|
|
256
|
+
"description": "Path to the file."
|
|
257
|
+
},
|
|
258
|
+
"repMap": {
|
|
259
|
+
"$ref": "#/definitions/ReplaceMap",
|
|
260
|
+
"description": "Replacement pairs."
|
|
261
|
+
},
|
|
262
|
+
"type": {
|
|
263
|
+
"$ref": "#/definitions/DictionaryFileTypes",
|
|
264
|
+
"default": "S",
|
|
265
|
+
"description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
|
|
266
|
+
},
|
|
267
|
+
"useCompounds": {
|
|
268
|
+
"description": "Use Compounds.",
|
|
269
|
+
"type": "boolean"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"required": [
|
|
273
|
+
"name",
|
|
274
|
+
"path"
|
|
275
|
+
],
|
|
276
|
+
"type": "object"
|
|
277
|
+
},
|
|
198
278
|
"DictionaryDefinitionCustom": {
|
|
199
279
|
"additionalProperties": false,
|
|
200
280
|
"description": "For Defining Custom dictionaries. They are generally scoped to a `user`, `workspace`, or `folder`. When `addWords` is true, indicates that the spell checker can add words to the file. Note: only plain text files with one word per line are supported at this moment.",
|
|
@@ -237,10 +317,6 @@
|
|
|
237
317
|
],
|
|
238
318
|
"description": "Defines the scope for when words will be added to the dictionary. Scope values: `user`, `workspace`, `folder`."
|
|
239
319
|
},
|
|
240
|
-
"suggestionEditCosts": {
|
|
241
|
-
"$ref": "#/definitions/SuggestionCostsDefs",
|
|
242
|
-
"description": "Used in making suggestions. The lower the value, the more likely the suggestion will be near the top of the suggestion list.\n\nAdded with `v5.16.0`."
|
|
243
|
-
},
|
|
244
320
|
"type": {
|
|
245
321
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
246
322
|
"default": "S",
|
|
@@ -281,10 +357,6 @@
|
|
|
281
357
|
"$ref": "#/definitions/ReplaceMap",
|
|
282
358
|
"description": "Replacement pairs."
|
|
283
359
|
},
|
|
284
|
-
"suggestionEditCosts": {
|
|
285
|
-
"$ref": "#/definitions/SuggestionCostsDefs",
|
|
286
|
-
"description": "Used in making suggestions. The lower the value, the more likely the suggestion will be near the top of the suggestion list.\n\nAdded with `v5.16.0`."
|
|
287
|
-
},
|
|
288
360
|
"type": {
|
|
289
361
|
"$ref": "#/definitions/DictionaryFileTypes",
|
|
290
362
|
"default": "S",
|
|
@@ -315,6 +387,59 @@
|
|
|
315
387
|
"pattern": "^(?=[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
316
388
|
"type": "string"
|
|
317
389
|
},
|
|
390
|
+
"DictionaryInformation": {
|
|
391
|
+
"additionalProperties": false,
|
|
392
|
+
"description": "Use by dictionary authors to help improve the quality of suggestions given from the dictionary.\n\nAdded with `v5.16.0`.",
|
|
393
|
+
"properties": {
|
|
394
|
+
"accents": {
|
|
395
|
+
"anyOf": [
|
|
396
|
+
{
|
|
397
|
+
"$ref": "#/definitions/CharacterSet"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"items": {
|
|
401
|
+
"$ref": "#/definitions/CharacterSetCosts"
|
|
402
|
+
},
|
|
403
|
+
"type": "array"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"default": "̀-́",
|
|
407
|
+
"description": "The accent characters"
|
|
408
|
+
},
|
|
409
|
+
"alphabet": {
|
|
410
|
+
"anyOf": [
|
|
411
|
+
{
|
|
412
|
+
"$ref": "#/definitions/CharacterSet"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"items": {
|
|
416
|
+
"$ref": "#/definitions/CharacterSetCosts"
|
|
417
|
+
},
|
|
418
|
+
"type": "array"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"default": "a-zA-Z",
|
|
422
|
+
"description": "The alphabet to use."
|
|
423
|
+
},
|
|
424
|
+
"costs": {
|
|
425
|
+
"$ref": "#/definitions/EditCosts",
|
|
426
|
+
"description": "Define edit costs."
|
|
427
|
+
},
|
|
428
|
+
"hunspellInformation": {
|
|
429
|
+
"$ref": "#/definitions/HunspellInformation",
|
|
430
|
+
"description": "Used by dictionary authors"
|
|
431
|
+
},
|
|
432
|
+
"locale": {
|
|
433
|
+
"description": "The locale of the dictionary. Example: `nl,nl-be`",
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
"suggestionEditCosts": {
|
|
437
|
+
"$ref": "#/definitions/SuggestionCostsDefs",
|
|
438
|
+
"description": "Used in making suggestions. The lower the value, the more likely the suggestion will be near the top of the suggestion list."
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"type": "object"
|
|
442
|
+
},
|
|
318
443
|
"DictionaryNegRef": {
|
|
319
444
|
"description": "This a negative reference to a named dictionary.\n\nIt is used to exclude or include a dictionary by name.\n\nThe reference starts with 1 or more `!`.\n- `!<dictionary_name>` - Used to exclude the dictionary matching `<dictionary_name>`.\n- `!!<dictionary_name>` - Used to re-include a dictionary matching `<dictionary_name>`. Overrides `!<dictionary_name>`.\n- `!!!<dictionary_name>` - Used to exclude a dictionary matching `<dictionary_name>`. Overrides `!!<dictionary_name>`.",
|
|
320
445
|
"pattern": "^(?=!+[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
@@ -340,6 +465,37 @@
|
|
|
340
465
|
],
|
|
341
466
|
"description": "Reference to a dictionary by name. One of:\n- {@link DictionaryRef } \n- {@link DictionaryNegRef }"
|
|
342
467
|
},
|
|
468
|
+
"EditCosts": {
|
|
469
|
+
"additionalProperties": false,
|
|
470
|
+
"properties": {
|
|
471
|
+
"accentCosts": {
|
|
472
|
+
"default": 1,
|
|
473
|
+
"description": "The cost to add / remove an accent This should be very cheap, it helps with fixing accent issues.",
|
|
474
|
+
"type": "number"
|
|
475
|
+
},
|
|
476
|
+
"baseCost": {
|
|
477
|
+
"default": 100,
|
|
478
|
+
"description": "This is the base cost for making an edit.",
|
|
479
|
+
"type": "number"
|
|
480
|
+
},
|
|
481
|
+
"capsCosts": {
|
|
482
|
+
"default": 1,
|
|
483
|
+
"description": "The cost to change capitalization. This should be very cheap, it helps with fixing capitalization issues.",
|
|
484
|
+
"type": "number"
|
|
485
|
+
},
|
|
486
|
+
"firstLetterPenalty": {
|
|
487
|
+
"default": 4,
|
|
488
|
+
"description": "The extra cost incurred for changing the first letter of a word. This value should be less than `100 - baseCost`.",
|
|
489
|
+
"type": "number"
|
|
490
|
+
},
|
|
491
|
+
"nonAlphabetCosts": {
|
|
492
|
+
"default": 110,
|
|
493
|
+
"description": "This is the cost for characters not in the alphabet.",
|
|
494
|
+
"type": "number"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"type": "object"
|
|
498
|
+
},
|
|
343
499
|
"FSPathResolvable": {
|
|
344
500
|
"$ref": "#/definitions/FsPath",
|
|
345
501
|
"description": "A File System Path.\n\nSpecial Properties:\n- `${cwd}` prefix - will be replaced with the current working directory.\n- Relative paths are relative to the configuration file."
|
|
@@ -366,6 +522,75 @@
|
|
|
366
522
|
"$ref": "#/definitions/SimpleGlob",
|
|
367
523
|
"description": "These are glob expressions."
|
|
368
524
|
},
|
|
525
|
+
"HunspellInformation": {
|
|
526
|
+
"additionalProperties": false,
|
|
527
|
+
"properties": {
|
|
528
|
+
"aff": {
|
|
529
|
+
"description": "Selected Hunspell AFF content. The content must be UTF-8\n\nSections:\n- TRY\n- MAP\n- REP\n- KEY\n- ICONV\n- OCONV\n\nExample: ```hunspell # Comment TRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ` MAP aàâäAÀÂÄ MAP eéèêëEÉÈÊË MAP iîïyIÎÏY MAP oôöOÔÖ MAP (IJ)(IJ) ```",
|
|
530
|
+
"type": "string"
|
|
531
|
+
},
|
|
532
|
+
"costs": {
|
|
533
|
+
"additionalProperties": false,
|
|
534
|
+
"description": "The costs to apply when using the hunspell settings",
|
|
535
|
+
"properties": {
|
|
536
|
+
"accentCosts": {
|
|
537
|
+
"default": 1,
|
|
538
|
+
"description": "The cost to add / remove an accent This should be very cheap, it helps with fixing accent issues.",
|
|
539
|
+
"type": "number"
|
|
540
|
+
},
|
|
541
|
+
"baseCost": {
|
|
542
|
+
"default": 100,
|
|
543
|
+
"description": "This is the base cost for making an edit.",
|
|
544
|
+
"type": "number"
|
|
545
|
+
},
|
|
546
|
+
"capsCosts": {
|
|
547
|
+
"default": 1,
|
|
548
|
+
"description": "The cost to change capitalization. This should be very cheap, it helps with fixing capitalization issues.",
|
|
549
|
+
"type": "number"
|
|
550
|
+
},
|
|
551
|
+
"firstLetterPenalty": {
|
|
552
|
+
"default": 4,
|
|
553
|
+
"description": "The extra cost incurred for changing the first letter of a word. This value should be less than `100 - baseCost`.",
|
|
554
|
+
"type": "number"
|
|
555
|
+
},
|
|
556
|
+
"ioConvertCost": {
|
|
557
|
+
"default": 30,
|
|
558
|
+
"description": "The cost to convert between convert pairs.\n\nThe value should be slightly higher than the mapCost.",
|
|
559
|
+
"type": "number"
|
|
560
|
+
},
|
|
561
|
+
"keyboardCost": {
|
|
562
|
+
"default": 99,
|
|
563
|
+
"description": "The cost of replacing or swapping any adjacent keyboard characters.\n\nThis should be slightly cheaper than `tryCharCost`.",
|
|
564
|
+
"type": "number"
|
|
565
|
+
},
|
|
566
|
+
"mapCost": {
|
|
567
|
+
"default": 25,
|
|
568
|
+
"description": "mapSet replacement cost is the cost to substitute one character with another from the same set.\n\nMap characters are considered very similar to each other and are often the cause of simple mistakes.",
|
|
569
|
+
"type": "number"
|
|
570
|
+
},
|
|
571
|
+
"nonAlphabetCosts": {
|
|
572
|
+
"default": 110,
|
|
573
|
+
"description": "This is the cost for characters not in the alphabet.",
|
|
574
|
+
"type": "number"
|
|
575
|
+
},
|
|
576
|
+
"replaceCosts": {
|
|
577
|
+
"default": 75,
|
|
578
|
+
"description": "The cost to substitute pairs found in the replace settings.",
|
|
579
|
+
"type": "number"
|
|
580
|
+
},
|
|
581
|
+
"tryCharCost": {
|
|
582
|
+
"description": "The cost of inserting / deleting / or swapping any `tryChars` Defaults to `baseCosts`",
|
|
583
|
+
"type": "number"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"type": "object"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"aff"
|
|
591
|
+
],
|
|
592
|
+
"type": "object"
|
|
593
|
+
},
|
|
369
594
|
"LanguageId": {
|
|
370
595
|
"anyOf": [
|
|
371
596
|
{
|
|
@@ -870,7 +1095,7 @@
|
|
|
870
1095
|
"$ref": "#/definitions/CostMapDefSwap"
|
|
871
1096
|
}
|
|
872
1097
|
],
|
|
873
|
-
"description": "A WeightedMapDef enables setting weights for edits between related characters and substrings.\n\nMultiple groups can be defined using a `|`. A multi-character substring is defined using `()`.\n\nFor example, in some languages, some letters sound alike.\n\n```
|
|
1098
|
+
"description": "A WeightedMapDef enables setting weights for edits between related characters and substrings.\n\nMultiple groups can be defined using a `|`. A multi-character substring is defined using `()`.\n\nFor example, in some languages, some letters sound alike.\n\n```yaml map: 'sc(sh)(sch)(ss)|t(tt)' # two groups. replace: 50 # Make it 1/2 the cost of a normal edit to replace a `t` with `tt`. ```\n\nThe following could be used to make inserting, removing, or replacing vowels cheaper. ```yaml map: 'aeiouy' insDel: 50 # Make it is cheaper to insert or delete a vowel. replace: 45 # It is even cheaper to replace one with another. ```\n\nNote: the default edit distance is 100."
|
|
874
1099
|
},
|
|
875
1100
|
"SuggestionCostsDefs": {
|
|
876
1101
|
"items": {
|
|
@@ -964,6 +1189,11 @@
|
|
|
964
1189
|
},
|
|
965
1190
|
"type": "array"
|
|
966
1191
|
},
|
|
1192
|
+
"failFast": {
|
|
1193
|
+
"default": false,
|
|
1194
|
+
"description": "Exit with non-zero code as soon as an issue/error is encountered (useful for CI or git hooks)",
|
|
1195
|
+
"type": "boolean"
|
|
1196
|
+
},
|
|
967
1197
|
"features": {
|
|
968
1198
|
"$ref": "#/definitions/Features",
|
|
969
1199
|
"description": "Configure CSpell features.\n\n- Added with `v5.16.0`."
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import type { DictionaryInformation } from './DictionaryInformation';
|
|
2
|
+
import type { Features } from './features';
|
|
3
3
|
export declare type ReplaceEntry = [string, string];
|
|
4
4
|
export declare type ReplaceMap = ReplaceEntry[];
|
|
5
5
|
/**
|
|
@@ -227,6 +227,11 @@ export interface CommandLineSettings {
|
|
|
227
227
|
* Define cache settings.
|
|
228
228
|
*/
|
|
229
229
|
cache?: CacheSettings;
|
|
230
|
+
/**
|
|
231
|
+
* Exit with non-zero code as soon as an issue/error is encountered (useful for CI or git hooks)
|
|
232
|
+
* @default false
|
|
233
|
+
*/
|
|
234
|
+
failFast?: boolean;
|
|
230
235
|
}
|
|
231
236
|
/**
|
|
232
237
|
* To prevent the unwanted execution of untrusted code, WorkspaceTrustSettings
|
|
@@ -346,7 +351,7 @@ export interface BaseSetting {
|
|
|
346
351
|
patterns?: RegExpPatternDefinition[];
|
|
347
352
|
}
|
|
348
353
|
export declare type DictionaryFileTypes = 'S' | 'W' | 'C' | 'T';
|
|
349
|
-
export declare type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
354
|
+
export declare type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
350
355
|
export interface DictionaryDefinitionBase {
|
|
351
356
|
/**
|
|
352
357
|
* This is the name of a dictionary.
|
|
@@ -385,13 +390,6 @@ export interface DictionaryDefinitionBase {
|
|
|
385
390
|
* @default "S"
|
|
386
391
|
*/
|
|
387
392
|
type?: DictionaryFileTypes;
|
|
388
|
-
/**
|
|
389
|
-
* Used in making suggestions. The lower the value, the more likely the suggestion
|
|
390
|
-
* will be near the top of the suggestion list.
|
|
391
|
-
*
|
|
392
|
-
* Added with `v5.16.0`.
|
|
393
|
-
*/
|
|
394
|
-
suggestionEditCosts?: SuggestionCostsDefs;
|
|
395
393
|
}
|
|
396
394
|
export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
|
|
397
395
|
/** Path to the file. */
|
|
@@ -404,6 +402,12 @@ export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase
|
|
|
404
402
|
*/
|
|
405
403
|
file?: undefined;
|
|
406
404
|
}
|
|
405
|
+
/**
|
|
406
|
+
* Used to provide extra data related to the dictionary
|
|
407
|
+
*/
|
|
408
|
+
export interface DictionaryDefinitionAugmented extends DictionaryDefinitionPreferred {
|
|
409
|
+
dictionaryInformation?: DictionaryInformation;
|
|
410
|
+
}
|
|
407
411
|
/**
|
|
408
412
|
* Only for legacy dictionary definitions.
|
|
409
413
|
* @deprecated true
|
|
@@ -418,6 +422,8 @@ export interface DictionaryDefinitionAlternate extends DictionaryDefinitionBase
|
|
|
418
422
|
* @deprecationMessage Use `path` instead.
|
|
419
423
|
*/
|
|
420
424
|
file: DictionaryPath;
|
|
425
|
+
/** @hidden */
|
|
426
|
+
suggestionEditCosts?: undefined;
|
|
421
427
|
}
|
|
422
428
|
/**
|
|
423
429
|
* @deprecated true
|
|
@@ -442,6 +448,10 @@ export interface DictionaryDefinitionLegacy extends DictionaryDefinitionBase {
|
|
|
442
448
|
* @default "S"
|
|
443
449
|
*/
|
|
444
450
|
type?: DictionaryFileTypes;
|
|
451
|
+
/**
|
|
452
|
+
* @hidden
|
|
453
|
+
*/
|
|
454
|
+
suggestionEditCosts?: undefined;
|
|
445
455
|
}
|
|
446
456
|
/**
|
|
447
457
|
* Specifies the scope of a dictionary.
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { SuggestionCostsDefs } from './suggestionCostsDef';
|
|
2
|
+
/**
|
|
3
|
+
* Use by dictionary authors to help improve the quality of suggestions
|
|
4
|
+
* given from the dictionary.
|
|
5
|
+
*
|
|
6
|
+
* Added with `v5.16.0`.
|
|
7
|
+
*/
|
|
8
|
+
export interface DictionaryInformation {
|
|
9
|
+
/**
|
|
10
|
+
* The locale of the dictionary.
|
|
11
|
+
* Example: `nl,nl-be`
|
|
12
|
+
*/
|
|
13
|
+
locale?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The alphabet to use.
|
|
16
|
+
* @default "a-zA-Z"
|
|
17
|
+
*/
|
|
18
|
+
alphabet?: CharacterSet | CharacterSetCosts[];
|
|
19
|
+
/**
|
|
20
|
+
* The accent characters
|
|
21
|
+
* @default "\u0300-\u0341"
|
|
22
|
+
*/
|
|
23
|
+
accents?: CharacterSet | CharacterSetCosts[];
|
|
24
|
+
/**
|
|
25
|
+
* Define edit costs.
|
|
26
|
+
*/
|
|
27
|
+
costs?: EditCosts;
|
|
28
|
+
/**
|
|
29
|
+
* Used in making suggestions. The lower the value, the more likely the suggestion
|
|
30
|
+
* will be near the top of the suggestion list.
|
|
31
|
+
*/
|
|
32
|
+
suggestionEditCosts?: SuggestionCostsDefs | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Used by dictionary authors
|
|
35
|
+
*/
|
|
36
|
+
hunspellInformation?: HunspellInformation;
|
|
37
|
+
}
|
|
38
|
+
export interface HunspellInformationParsed {
|
|
39
|
+
/**
|
|
40
|
+
* This is generally the alphabet used in the dictionary.
|
|
41
|
+
* It stands for the characters to try using for substitutions
|
|
42
|
+
* when looking for a suggestions.
|
|
43
|
+
*
|
|
44
|
+
* Example:
|
|
45
|
+
* - Hunspell:
|
|
46
|
+
* ```hunspell
|
|
47
|
+
* TRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ`
|
|
48
|
+
* ```
|
|
49
|
+
* - Use: yaml
|
|
50
|
+
* ```yaml
|
|
51
|
+
* tryChars: "aeistlunkodmrvpgjhäõbüoöfcwzxðqþ"
|
|
52
|
+
* ```
|
|
53
|
+
* <!--- cspell:ignore aeistlunkodmrvpgjhäõbüoöfcwzxðqþ --
|
|
54
|
+
*/
|
|
55
|
+
tryChars?: string;
|
|
56
|
+
/**
|
|
57
|
+
* This defines characters that are good substitutes for each other.
|
|
58
|
+
* - A `()` is need for multi character sequences like letters with multiple accents.
|
|
59
|
+
* - Separate unrelated characters with `|` or `\n`
|
|
60
|
+
*
|
|
61
|
+
* Example:
|
|
62
|
+
* - Hunspell:
|
|
63
|
+
* ```hunspell
|
|
64
|
+
* MAP aàâäAÀÂÄ
|
|
65
|
+
* MAP eéèêëEÉÈÊË
|
|
66
|
+
* MAP iîïyIÎÏY
|
|
67
|
+
* MAP oôöOÔÖ
|
|
68
|
+
* MAP (IJ)(IJ)
|
|
69
|
+
* ```
|
|
70
|
+
* - Use:
|
|
71
|
+
* `yaml`
|
|
72
|
+
* ```yaml
|
|
73
|
+
* mapSets: |
|
|
74
|
+
* aàâäAÀÂÄ|eéèêëEÉÈÊË`
|
|
75
|
+
* eéèêëEÉÈÊË|iîïyIÎÏY
|
|
76
|
+
* oôöOÔÖ|(IJ)(IJ)
|
|
77
|
+
* ```
|
|
78
|
+
* <!--- cspell:ignore aàâä eéèêë iîïy -->
|
|
79
|
+
*/
|
|
80
|
+
mapSets?: string | string[];
|
|
81
|
+
/**
|
|
82
|
+
* This represents the layout of a common keyboard.
|
|
83
|
+
* Used for adjacency mistakes.
|
|
84
|
+
*
|
|
85
|
+
* Hunspell:
|
|
86
|
+
* ```hunspell
|
|
87
|
+
* KEY qwertyuiop|asdfghjkl|zxcvbnm
|
|
88
|
+
* ```
|
|
89
|
+
* Use:
|
|
90
|
+
* ```yaml
|
|
91
|
+
* keyboard: qwertyuiop|asdfghjkl|zxcvbnm
|
|
92
|
+
* ```
|
|
93
|
+
* <!--- cspell:ignore asdfghjkl qwertyuiop zxcvbnm -->
|
|
94
|
+
*/
|
|
95
|
+
keyboard?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Output Conversions
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
outConvert?: string | string[];
|
|
101
|
+
inConvert?: string | string[];
|
|
102
|
+
/**
|
|
103
|
+
* Common Substitutions.
|
|
104
|
+
* Special characters:
|
|
105
|
+
* - `^` - matches the beginning of a word.
|
|
106
|
+
* - `$` - matches the end of a word.
|
|
107
|
+
*
|
|
108
|
+
* Hunspell:
|
|
109
|
+
* ```hunspell
|
|
110
|
+
* REP c ss
|
|
111
|
+
* REP e ij
|
|
112
|
+
* REP é ee
|
|
113
|
+
* REP g ch
|
|
114
|
+
* REP ï ii
|
|
115
|
+
* REP t d # gebiest=>gebiesd
|
|
116
|
+
* REP u ij
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* Use:
|
|
120
|
+
* ```yaml
|
|
121
|
+
* replace: |
|
|
122
|
+
* c ss
|
|
123
|
+
* e ij
|
|
124
|
+
* é ee
|
|
125
|
+
* g ch
|
|
126
|
+
* ï ii
|
|
127
|
+
* t d
|
|
128
|
+
* u ij
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* <!--- cspell:ignore gebiesd gebiest -->
|
|
132
|
+
*/
|
|
133
|
+
replace?: string | string[];
|
|
134
|
+
/** The costs to apply when using the hunspell settings */
|
|
135
|
+
costs?: HunspellCosts;
|
|
136
|
+
}
|
|
137
|
+
export interface HunspellInformation {
|
|
138
|
+
/**
|
|
139
|
+
* Selected Hunspell AFF content.
|
|
140
|
+
* The content must be UTF-8
|
|
141
|
+
*
|
|
142
|
+
* Sections:
|
|
143
|
+
* - TRY
|
|
144
|
+
* - MAP
|
|
145
|
+
* - REP
|
|
146
|
+
* - KEY
|
|
147
|
+
* - ICONV
|
|
148
|
+
* - OCONV
|
|
149
|
+
*
|
|
150
|
+
* Example:
|
|
151
|
+
* ```hunspell
|
|
152
|
+
* # Comment
|
|
153
|
+
* TRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ`
|
|
154
|
+
* MAP aàâäAÀÂÄ
|
|
155
|
+
* MAP eéèêëEÉÈÊË
|
|
156
|
+
* MAP iîïyIÎÏY
|
|
157
|
+
* MAP oôöOÔÖ
|
|
158
|
+
* MAP (IJ)(IJ)
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
aff: HunspellAffContent;
|
|
162
|
+
/** The costs to apply when using the hunspell settings */
|
|
163
|
+
costs?: HunspellCosts;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Selected Hunspell AFF content.
|
|
167
|
+
* The content must be UTF-8
|
|
168
|
+
*
|
|
169
|
+
* Sections:
|
|
170
|
+
* - TRY
|
|
171
|
+
* - NO-TRY
|
|
172
|
+
* - MAP
|
|
173
|
+
* - REP
|
|
174
|
+
* - KEY
|
|
175
|
+
* - ICONV
|
|
176
|
+
* - OCONV
|
|
177
|
+
*
|
|
178
|
+
* Example:
|
|
179
|
+
* ```hunspell
|
|
180
|
+
* # Comment
|
|
181
|
+
* TRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ`
|
|
182
|
+
* NO-TRY -0123456789 # Discourage adding numbers and dashes.
|
|
183
|
+
* MAP aàâäAÀÂÄ
|
|
184
|
+
* MAP eéèêëEÉÈÊË
|
|
185
|
+
* MAP iîïyIÎÏY
|
|
186
|
+
* MAP oôöOÔÖ
|
|
187
|
+
* MAP (IJ)(IJ)
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
declare type HunspellAffContent = string;
|
|
191
|
+
interface HunspellCosts extends EditCosts {
|
|
192
|
+
/**
|
|
193
|
+
* The cost of inserting / deleting / or swapping any `tryChars`
|
|
194
|
+
* Defaults to `baseCosts`
|
|
195
|
+
*/
|
|
196
|
+
tryCharCost?: number;
|
|
197
|
+
/**
|
|
198
|
+
* The cost of replacing or swapping any adjacent keyboard characters.
|
|
199
|
+
*
|
|
200
|
+
* This should be slightly cheaper than `tryCharCost`.
|
|
201
|
+
* @default 99
|
|
202
|
+
*/
|
|
203
|
+
keyboardCost?: number;
|
|
204
|
+
/**
|
|
205
|
+
* mapSet replacement cost is the cost to substitute one character with another from
|
|
206
|
+
* the same set.
|
|
207
|
+
*
|
|
208
|
+
* Map characters are considered very similar to each other and are often
|
|
209
|
+
* the cause of simple mistakes.
|
|
210
|
+
*
|
|
211
|
+
* @default 25
|
|
212
|
+
*/
|
|
213
|
+
mapCost?: number;
|
|
214
|
+
/**
|
|
215
|
+
* The cost to convert between convert pairs.
|
|
216
|
+
*
|
|
217
|
+
* The value should be slightly higher than the mapCost.
|
|
218
|
+
*
|
|
219
|
+
* @default 30
|
|
220
|
+
*/
|
|
221
|
+
ioConvertCost?: number;
|
|
222
|
+
/**
|
|
223
|
+
* The cost to substitute pairs found in the replace settings.
|
|
224
|
+
*
|
|
225
|
+
* @default 75
|
|
226
|
+
*/
|
|
227
|
+
replaceCosts?: number;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
export interface EditCosts {
|
|
233
|
+
/**
|
|
234
|
+
* This is the base cost for making an edit.
|
|
235
|
+
* @default 100
|
|
236
|
+
*/
|
|
237
|
+
baseCost?: number;
|
|
238
|
+
/**
|
|
239
|
+
* This is the cost for characters not in the alphabet.
|
|
240
|
+
* @default 110
|
|
241
|
+
*/
|
|
242
|
+
nonAlphabetCosts?: number;
|
|
243
|
+
/**
|
|
244
|
+
* The extra cost incurred for changing the first letter of a word.
|
|
245
|
+
* This value should be less than `100 - baseCost`.
|
|
246
|
+
* @default 4
|
|
247
|
+
*/
|
|
248
|
+
firstLetterPenalty?: number;
|
|
249
|
+
/**
|
|
250
|
+
* The cost to change capitalization.
|
|
251
|
+
* This should be very cheap, it helps with fixing capitalization issues.
|
|
252
|
+
* @default 1
|
|
253
|
+
*/
|
|
254
|
+
capsCosts?: number;
|
|
255
|
+
/**
|
|
256
|
+
* The cost to add / remove an accent
|
|
257
|
+
* This should be very cheap, it helps with fixing accent issues.
|
|
258
|
+
* @default 1
|
|
259
|
+
*/
|
|
260
|
+
accentCosts?: number;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* This is a set of characters that can include `-` or `|`
|
|
264
|
+
* - `-` - indicates a range of characters: `a-c` => `abc`
|
|
265
|
+
* - `|` - is a group separator, indicating that the characters on either side
|
|
266
|
+
* are not related.
|
|
267
|
+
*/
|
|
268
|
+
export declare type CharacterSet = string;
|
|
269
|
+
export interface CharacterSetCosts {
|
|
270
|
+
/**
|
|
271
|
+
* This is a set of characters that can include `-` or `|`
|
|
272
|
+
* - `-` - indicates a range of characters: `a-c` => `abc`
|
|
273
|
+
* - `|` - is a group separator, indicating that the characters on either side
|
|
274
|
+
* are not related.
|
|
275
|
+
*/
|
|
276
|
+
characters: CharacterSet;
|
|
277
|
+
/** the cost to insert / delete / replace / swap the characters in a group */
|
|
278
|
+
cost: number;
|
|
279
|
+
/**
|
|
280
|
+
* The penalty cost to apply if the accent is used.
|
|
281
|
+
* This is used to discourage
|
|
282
|
+
*/
|
|
283
|
+
penalty?: number;
|
|
284
|
+
}
|
|
285
|
+
export {};
|
|
286
|
+
//# sourceMappingURL=DictionaryInformation.d.ts.map
|
package/dist/configFields.js
CHANGED
package/dist/features.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export { ConfigFields } from './configFields';
|
|
|
2
2
|
export type { CSpellUserSettingsFields } from './configFields';
|
|
3
3
|
export * from './CSpellReporter';
|
|
4
4
|
export * from './CSpellSettingsDef';
|
|
5
|
+
export type { CharacterSet, CharacterSetCosts, DictionaryInformation, EditCosts } from './DictionaryInformation';
|
|
6
|
+
export type { Feature, Features } from './features';
|
|
5
7
|
export type { SuggestionCostMapDef, SuggestionCostsDefs } from './suggestionCostsDef';
|
|
6
8
|
export type { TextDocumentOffset, TextOffset } from './TextOffset';
|
|
7
|
-
export type { Features, Feature } from './features';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,20 +6,16 @@
|
|
|
6
6
|
*
|
|
7
7
|
* For example, in some languages, some letters sound alike.
|
|
8
8
|
*
|
|
9
|
-
* ```
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* replace: 50, // Make it 1/2 the cost of a normal edit to replace a `t` with `tt`.
|
|
13
|
-
* }
|
|
9
|
+
* ```yaml
|
|
10
|
+
* map: 'sc(sh)(sch)(ss)|t(tt)' # two groups.
|
|
11
|
+
* replace: 50 # Make it 1/2 the cost of a normal edit to replace a `t` with `tt`.
|
|
14
12
|
* ```
|
|
15
13
|
*
|
|
16
14
|
* The following could be used to make inserting, removing, or replacing vowels cheaper.
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* replace: 45, // It is even cheaper to replace one with another.
|
|
22
|
-
* }
|
|
15
|
+
* ```yaml
|
|
16
|
+
* map: 'aeiouy'
|
|
17
|
+
* insDel: 50 # Make it is cheaper to insert or delete a vowel.
|
|
18
|
+
* replace: 45 # It is even cheaper to replace one with another.
|
|
23
19
|
* ```
|
|
24
20
|
*
|
|
25
21
|
* Note: the default edit distance is 100.
|
|
@@ -37,6 +33,10 @@ interface CostMapDefBase {
|
|
|
37
33
|
* To add a multi-character substring use `()`.
|
|
38
34
|
*
|
|
39
35
|
* Example: `"f(ph)(gh)"` results in the following set: `f`, `ph`, `gh`.
|
|
36
|
+
*
|
|
37
|
+
* - To match the beginning of a word, use `^`: `"(^I)""`.
|
|
38
|
+
* - To match the end of a word, use `$`: `"(e$)(ing$)"`.
|
|
39
|
+
*
|
|
40
40
|
*/
|
|
41
41
|
map: string;
|
|
42
42
|
/** The cost to insert/delete one of the substrings in the map. Note: insert/delete costs are symmetrical. */
|
|
@@ -57,6 +57,23 @@ interface CostMapDefBase {
|
|
|
57
57
|
* A description to describe the purpose of the map.
|
|
58
58
|
*/
|
|
59
59
|
description?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Add a penalty to the final cost.
|
|
62
|
+
* This is used to discourage certain suggestions.
|
|
63
|
+
*
|
|
64
|
+
* Example:
|
|
65
|
+
* ```yaml
|
|
66
|
+
* # Match adding/removing `-` to the end of a word.
|
|
67
|
+
* map: "$(-$)"
|
|
68
|
+
* replace: 50
|
|
69
|
+
* penalty: 100
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* This makes adding a `-` to the end of a word more expensive.
|
|
73
|
+
*
|
|
74
|
+
* Think of it as taking the toll way for speed but getting the bill later.
|
|
75
|
+
*/
|
|
76
|
+
penalty?: number;
|
|
60
77
|
}
|
|
61
78
|
export interface CostMapDefReplace extends CostMapDefBase {
|
|
62
79
|
replace: number;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.18.0-alpha.0",
|
|
7
7
|
"description": "Types for cspell and cspell-lib",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"typings": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "npm run compile && npm run build-schema",
|
|
19
19
|
"build-dev": "tsc -p tsconfig.dev.json",
|
|
20
20
|
"build-schema": "ts-json-schema-generator --no-top-ref --path src/CSpellSettingsDef.ts --type CSpellSettings --validation-keywords markdownDescription --validation-keywords scope --validation-keywords deprecated --validation-keywords deprecationMessage -o ./cspell.schema.json && cp ./cspell.schema.json ../..",
|
|
21
|
-
"build-docs": "typedoc --out ../../docs/types/cspell-types src/index.ts",
|
|
21
|
+
"build-docs": "rimraf ../../docs/types/cspell-types && typedoc --out ../../docs/types/cspell-types src/index.ts",
|
|
22
22
|
"test-build-docs": "typedoc --out ./temp/docs src/index.ts",
|
|
23
23
|
"clean-build": "npm run clean && npm run build",
|
|
24
24
|
"compile": "tsc -p .",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"ts-json-schema-generator": "^0.97.0",
|
|
56
56
|
"typedoc": "0.22.11",
|
|
57
57
|
"typedoc-plugin-markdown": "^3.11.12",
|
|
58
|
-
"typescript": "^4.5.
|
|
58
|
+
"typescript": "^4.5.5"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "d3c6f34444f19e9d8e375d1cbea6f99d0f270716"
|
|
61
61
|
}
|