@cspell/cspell-types 10.2.2 → 10.3.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 +51 -0
- package/dist/index.d.mts +32 -0
- package/dist/index.d.ts +32 -0
- package/package.json +2 -2
package/cspell.schema.json
CHANGED
|
@@ -354,6 +354,12 @@
|
|
|
354
354
|
"markdownDescription": "Some dictionaries may contain forbidden words to prevent compounding from generating\nwords that are not valid in the language. These are often\nwords that are used in other languages or might be generated through compounding.\nThis setting allows flagged words to be ignored when checking the dictionary.\nThe effect is similar to the word not being in the dictionary.",
|
|
355
355
|
"type": "boolean"
|
|
356
356
|
},
|
|
357
|
+
"kind": {
|
|
358
|
+
"$ref": "#/definitions/DictionaryKind",
|
|
359
|
+
"description": "Used to specify the type of dictionary being referenced. Values:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore. This is the same as setting `noSuggest` to `true`.",
|
|
360
|
+
"markdownDescription": "Used to specify the type of dictionary being referenced.\nValues:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore.\n This is the same as setting `noSuggest` to `true`.",
|
|
361
|
+
"since": "10.3.0"
|
|
362
|
+
},
|
|
357
363
|
"name": {
|
|
358
364
|
"$ref": "#/definitions/DictionaryId",
|
|
359
365
|
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
@@ -417,6 +423,12 @@
|
|
|
417
423
|
"markdownDescription": "Some dictionaries may contain forbidden words to prevent compounding from generating\nwords that are not valid in the language. These are often\nwords that are used in other languages or might be generated through compounding.\nThis setting allows flagged words to be ignored when checking the dictionary.\nThe effect is similar to the word not being in the dictionary.",
|
|
418
424
|
"type": "boolean"
|
|
419
425
|
},
|
|
426
|
+
"kind": {
|
|
427
|
+
"$ref": "#/definitions/DictionaryKind",
|
|
428
|
+
"description": "Used to specify the type of dictionary being referenced. Values:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore. This is the same as setting `noSuggest` to `true`.",
|
|
429
|
+
"markdownDescription": "Used to specify the type of dictionary being referenced.\nValues:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore.\n This is the same as setting `noSuggest` to `true`.",
|
|
430
|
+
"since": "10.3.0"
|
|
431
|
+
},
|
|
420
432
|
"name": {
|
|
421
433
|
"$ref": "#/definitions/DictionaryId",
|
|
422
434
|
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
@@ -487,6 +499,12 @@
|
|
|
487
499
|
"markdownDescription": "Some dictionaries may contain forbidden words to prevent compounding from generating\nwords that are not valid in the language. These are often\nwords that are used in other languages or might be generated through compounding.\nThis setting allows flagged words to be ignored when checking the dictionary.\nThe effect is similar to the word not being in the dictionary.",
|
|
488
500
|
"type": "boolean"
|
|
489
501
|
},
|
|
502
|
+
"kind": {
|
|
503
|
+
"$ref": "#/definitions/DictionaryKind",
|
|
504
|
+
"description": "Used to specify the type of dictionary being referenced. Values:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore. This is the same as setting `noSuggest` to `true`.",
|
|
505
|
+
"markdownDescription": "Used to specify the type of dictionary being referenced.\nValues:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore.\n This is the same as setting `noSuggest` to `true`.",
|
|
506
|
+
"since": "10.3.0"
|
|
507
|
+
},
|
|
490
508
|
"name": {
|
|
491
509
|
"$ref": "#/definitions/DictionaryId",
|
|
492
510
|
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
@@ -817,6 +835,12 @@
|
|
|
817
835
|
"markdownDescription": "Some dictionaries may contain forbidden words to prevent compounding from generating\nwords that are not valid in the language. These are often\nwords that are used in other languages or might be generated through compounding.\nThis setting allows flagged words to be ignored when checking the dictionary.\nThe effect is similar to the word not being in the dictionary.",
|
|
818
836
|
"type": "boolean"
|
|
819
837
|
},
|
|
838
|
+
"kind": {
|
|
839
|
+
"$ref": "#/definitions/DictionaryKind",
|
|
840
|
+
"description": "Used to specify the type of dictionary being referenced. Values:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore. This is the same as setting `noSuggest` to `true`.",
|
|
841
|
+
"markdownDescription": "Used to specify the type of dictionary being referenced.\nValues:\n- `words` - (default) A dictionary containing words.\n- `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.\n- `ignore-words` - A dictionary containing words to ignore.\n This is the same as setting `noSuggest` to `true`.",
|
|
842
|
+
"since": "10.3.0"
|
|
843
|
+
},
|
|
820
844
|
"name": {
|
|
821
845
|
"$ref": "#/definitions/DictionaryId",
|
|
822
846
|
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
@@ -975,6 +999,33 @@
|
|
|
975
999
|
},
|
|
976
1000
|
"type": "object"
|
|
977
1001
|
},
|
|
1002
|
+
"DictionaryKind": {
|
|
1003
|
+
"anyOf": [
|
|
1004
|
+
{
|
|
1005
|
+
"$ref": "#/definitions/DictionaryKindWords"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"$ref": "#/definitions/DictionaryKindFlagWords"
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"$ref": "#/definitions/DictionaryKindIgnoreWords"
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
"description": "The kind of dictionary.\n\nUsed to specify the type of dictionary being referenced.\n\nValues:\n- `words` - A dictionary containing words.\n- `flag-words` - A dictionary containing flag words.\n- `ignore-words` - A dictionary containing words to ignore.",
|
|
1015
|
+
"markdownDescription": "The kind of dictionary.\n\nUsed to specify the type of dictionary being referenced.\n\nValues:\n- `words` - A dictionary containing words.\n- `flag-words` - A dictionary containing flag words.\n- `ignore-words` - A dictionary containing words to ignore."
|
|
1016
|
+
},
|
|
1017
|
+
"DictionaryKindFlagWords": {
|
|
1018
|
+
"const": "flag-words",
|
|
1019
|
+
"type": "string"
|
|
1020
|
+
},
|
|
1021
|
+
"DictionaryKindIgnoreWords": {
|
|
1022
|
+
"const": "ignore-words",
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
},
|
|
1025
|
+
"DictionaryKindWords": {
|
|
1026
|
+
"const": "words",
|
|
1027
|
+
"type": "string"
|
|
1028
|
+
},
|
|
978
1029
|
"DictionaryNegRef": {
|
|
979
1030
|
"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>`.",
|
|
980
1031
|
"markdownDescription": "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>`.\n Overrides `!<dictionary_name>`.\n- `!!!<dictionary_name>` - Used to exclude a dictionary matching `<dictionary_name>`.\n Overrides `!!<dictionary_name>`.",
|
package/dist/index.d.mts
CHANGED
|
@@ -784,6 +784,16 @@ interface DictionaryDefinitionBase {
|
|
|
784
784
|
* possible suggestions.
|
|
785
785
|
*/
|
|
786
786
|
noSuggest?: boolean | undefined;
|
|
787
|
+
/**
|
|
788
|
+
* Used to specify the type of dictionary being referenced.
|
|
789
|
+
* Values:
|
|
790
|
+
* - `words` - (default) A dictionary containing words.
|
|
791
|
+
* - `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.
|
|
792
|
+
* - `ignore-words` - A dictionary containing words to ignore.
|
|
793
|
+
* This is the same as setting `noSuggest` to `true`.
|
|
794
|
+
* @since 10.3.0
|
|
795
|
+
*/
|
|
796
|
+
kind?: DictionaryKind | undefined;
|
|
787
797
|
/**
|
|
788
798
|
* Some dictionaries may contain forbidden words to prevent compounding from generating
|
|
789
799
|
* words that are not valid in the language. These are often
|
|
@@ -869,6 +879,10 @@ interface DictionaryDefinitionSimple extends DictionaryDefinitionBaseWithPathsHi
|
|
|
869
879
|
* @hide
|
|
870
880
|
*/
|
|
871
881
|
noSuggest?: boolean | undefined;
|
|
882
|
+
/**
|
|
883
|
+
* @hide
|
|
884
|
+
*/
|
|
885
|
+
kind?: DictionaryKind | undefined;
|
|
872
886
|
/**
|
|
873
887
|
* @hide
|
|
874
888
|
*/
|
|
@@ -910,6 +924,10 @@ interface HiddenFields {
|
|
|
910
924
|
* @hide
|
|
911
925
|
*/
|
|
912
926
|
noSuggest?: undefined;
|
|
927
|
+
/**
|
|
928
|
+
* @hide
|
|
929
|
+
*/
|
|
930
|
+
kind?: DictionaryKind | undefined;
|
|
913
931
|
/**
|
|
914
932
|
* Not used
|
|
915
933
|
* @hide
|
|
@@ -1087,6 +1105,20 @@ type DictionaryRef = DictionaryId;
|
|
|
1087
1105
|
* @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
|
|
1088
1106
|
*/
|
|
1089
1107
|
type DictionaryNegRef = string;
|
|
1108
|
+
type DictionaryKindWords = "words";
|
|
1109
|
+
type DictionaryKindFlagWords = "flag-words";
|
|
1110
|
+
type DictionaryKindIgnoreWords = "ignore-words";
|
|
1111
|
+
/**
|
|
1112
|
+
* The kind of dictionary.
|
|
1113
|
+
*
|
|
1114
|
+
* Used to specify the type of dictionary being referenced.
|
|
1115
|
+
*
|
|
1116
|
+
* Values:
|
|
1117
|
+
* - `words` - A dictionary containing words.
|
|
1118
|
+
* - `flag-words` - A dictionary containing flag words.
|
|
1119
|
+
* - `ignore-words` - A dictionary containing words to ignore.
|
|
1120
|
+
*/
|
|
1121
|
+
type DictionaryKind = DictionaryKindWords | DictionaryKindFlagWords | DictionaryKindIgnoreWords;
|
|
1090
1122
|
//#endregion
|
|
1091
1123
|
//#region src/features.d.ts
|
|
1092
1124
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -784,6 +784,16 @@ interface DictionaryDefinitionBase {
|
|
|
784
784
|
* possible suggestions.
|
|
785
785
|
*/
|
|
786
786
|
noSuggest?: boolean | undefined;
|
|
787
|
+
/**
|
|
788
|
+
* Used to specify the type of dictionary being referenced.
|
|
789
|
+
* Values:
|
|
790
|
+
* - `words` - (default) A dictionary containing words.
|
|
791
|
+
* - `flag-words` - A dictionary containing flag words. Words found in the dictionary will be treated like `flagWords`.
|
|
792
|
+
* - `ignore-words` - A dictionary containing words to ignore.
|
|
793
|
+
* This is the same as setting `noSuggest` to `true`.
|
|
794
|
+
* @since 10.3.0
|
|
795
|
+
*/
|
|
796
|
+
kind?: DictionaryKind | undefined;
|
|
787
797
|
/**
|
|
788
798
|
* Some dictionaries may contain forbidden words to prevent compounding from generating
|
|
789
799
|
* words that are not valid in the language. These are often
|
|
@@ -869,6 +879,10 @@ interface DictionaryDefinitionSimple extends DictionaryDefinitionBaseWithPathsHi
|
|
|
869
879
|
* @hide
|
|
870
880
|
*/
|
|
871
881
|
noSuggest?: boolean | undefined;
|
|
882
|
+
/**
|
|
883
|
+
* @hide
|
|
884
|
+
*/
|
|
885
|
+
kind?: DictionaryKind | undefined;
|
|
872
886
|
/**
|
|
873
887
|
* @hide
|
|
874
888
|
*/
|
|
@@ -910,6 +924,10 @@ interface HiddenFields {
|
|
|
910
924
|
* @hide
|
|
911
925
|
*/
|
|
912
926
|
noSuggest?: undefined;
|
|
927
|
+
/**
|
|
928
|
+
* @hide
|
|
929
|
+
*/
|
|
930
|
+
kind?: DictionaryKind | undefined;
|
|
913
931
|
/**
|
|
914
932
|
* Not used
|
|
915
933
|
* @hide
|
|
@@ -1087,6 +1105,20 @@ type DictionaryRef = DictionaryId;
|
|
|
1087
1105
|
* @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
|
|
1088
1106
|
*/
|
|
1089
1107
|
type DictionaryNegRef = string;
|
|
1108
|
+
type DictionaryKindWords = "words";
|
|
1109
|
+
type DictionaryKindFlagWords = "flag-words";
|
|
1110
|
+
type DictionaryKindIgnoreWords = "ignore-words";
|
|
1111
|
+
/**
|
|
1112
|
+
* The kind of dictionary.
|
|
1113
|
+
*
|
|
1114
|
+
* Used to specify the type of dictionary being referenced.
|
|
1115
|
+
*
|
|
1116
|
+
* Values:
|
|
1117
|
+
* - `words` - A dictionary containing words.
|
|
1118
|
+
* - `flag-words` - A dictionary containing flag words.
|
|
1119
|
+
* - `ignore-words` - A dictionary containing words to ignore.
|
|
1120
|
+
*/
|
|
1121
|
+
type DictionaryKind = DictionaryKindWords | DictionaryKindFlagWords | DictionaryKindIgnoreWords;
|
|
1090
1122
|
//#endregion
|
|
1091
1123
|
//#region src/features.d.ts
|
|
1092
1124
|
/**
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "10.
|
|
7
|
+
"version": "10.3.0-alpha.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": "39297075c7a4946feb1a4f0a509e329cfb0b4f11"
|
|
89
89
|
}
|