@cspell/cspell-types 10.2.2 → 10.3.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.
@@ -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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the dictionary will be treated like `suggestWords`.",
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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the\n dictionary will be treated like `suggestWords`.",
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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the dictionary will be treated like `suggestWords`.",
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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the\n dictionary will be treated like `suggestWords`.",
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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the dictionary will be treated like `suggestWords`.",
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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the\n dictionary will be treated like `suggestWords`.",
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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the dictionary will be treated like `suggestWords`.",
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`.\n- `suggest-words` - A dictionary containing suggested word corrections. Words found in the\n dictionary will be treated like `suggestWords`.",
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,40 @@
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
+ "$ref": "#/definitions/DictionaryKindSuggestWords"
1015
+ }
1016
+ ],
1017
+ "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.\n- `suggest-words` - A dictionary containing suggested word corrections.",
1018
+ "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.\n- `suggest-words` - A dictionary containing suggested word corrections."
1019
+ },
1020
+ "DictionaryKindFlagWords": {
1021
+ "const": "flag-words",
1022
+ "type": "string"
1023
+ },
1024
+ "DictionaryKindIgnoreWords": {
1025
+ "const": "ignore-words",
1026
+ "type": "string"
1027
+ },
1028
+ "DictionaryKindSuggestWords": {
1029
+ "const": "suggest-words",
1030
+ "type": "string"
1031
+ },
1032
+ "DictionaryKindWords": {
1033
+ "const": "words",
1034
+ "type": "string"
1035
+ },
978
1036
  "DictionaryNegRef": {
979
1037
  "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
1038
  "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,18 @@ 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
+ * - `suggest-words` - A dictionary containing suggested word corrections. Words found in the
795
+ * dictionary will be treated like `suggestWords`.
796
+ * @since 10.3.0
797
+ */
798
+ kind?: DictionaryKind | undefined;
787
799
  /**
788
800
  * Some dictionaries may contain forbidden words to prevent compounding from generating
789
801
  * words that are not valid in the language. These are often
@@ -869,6 +881,10 @@ interface DictionaryDefinitionSimple extends DictionaryDefinitionBaseWithPathsHi
869
881
  * @hide
870
882
  */
871
883
  noSuggest?: boolean | undefined;
884
+ /**
885
+ * @hide
886
+ */
887
+ kind?: DictionaryKind | undefined;
872
888
  /**
873
889
  * @hide
874
890
  */
@@ -910,6 +926,10 @@ interface HiddenFields {
910
926
  * @hide
911
927
  */
912
928
  noSuggest?: undefined;
929
+ /**
930
+ * @hide
931
+ */
932
+ kind?: DictionaryKind | undefined;
913
933
  /**
914
934
  * Not used
915
935
  * @hide
@@ -1087,6 +1107,22 @@ type DictionaryRef = DictionaryId;
1087
1107
  * @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
1088
1108
  */
1089
1109
  type DictionaryNegRef = string;
1110
+ type DictionaryKindWords = "words";
1111
+ type DictionaryKindFlagWords = "flag-words";
1112
+ type DictionaryKindIgnoreWords = "ignore-words";
1113
+ type DictionaryKindSuggestWords = "suggest-words";
1114
+ /**
1115
+ * The kind of dictionary.
1116
+ *
1117
+ * Used to specify the type of dictionary being referenced.
1118
+ *
1119
+ * Values:
1120
+ * - `words` - A dictionary containing words.
1121
+ * - `flag-words` - A dictionary containing flag words.
1122
+ * - `ignore-words` - A dictionary containing words to ignore.
1123
+ * - `suggest-words` - A dictionary containing suggested word corrections.
1124
+ */
1125
+ type DictionaryKind = DictionaryKindWords | DictionaryKindFlagWords | DictionaryKindIgnoreWords | DictionaryKindSuggestWords;
1090
1126
  //#endregion
1091
1127
  //#region src/features.d.ts
1092
1128
  /**
package/dist/index.d.ts CHANGED
@@ -784,6 +784,18 @@ 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
+ * - `suggest-words` - A dictionary containing suggested word corrections. Words found in the
795
+ * dictionary will be treated like `suggestWords`.
796
+ * @since 10.3.0
797
+ */
798
+ kind?: DictionaryKind | undefined;
787
799
  /**
788
800
  * Some dictionaries may contain forbidden words to prevent compounding from generating
789
801
  * words that are not valid in the language. These are often
@@ -869,6 +881,10 @@ interface DictionaryDefinitionSimple extends DictionaryDefinitionBaseWithPathsHi
869
881
  * @hide
870
882
  */
871
883
  noSuggest?: boolean | undefined;
884
+ /**
885
+ * @hide
886
+ */
887
+ kind?: DictionaryKind | undefined;
872
888
  /**
873
889
  * @hide
874
890
  */
@@ -910,6 +926,10 @@ interface HiddenFields {
910
926
  * @hide
911
927
  */
912
928
  noSuggest?: undefined;
929
+ /**
930
+ * @hide
931
+ */
932
+ kind?: DictionaryKind | undefined;
913
933
  /**
914
934
  * Not used
915
935
  * @hide
@@ -1087,6 +1107,22 @@ type DictionaryRef = DictionaryId;
1087
1107
  * @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
1088
1108
  */
1089
1109
  type DictionaryNegRef = string;
1110
+ type DictionaryKindWords = "words";
1111
+ type DictionaryKindFlagWords = "flag-words";
1112
+ type DictionaryKindIgnoreWords = "ignore-words";
1113
+ type DictionaryKindSuggestWords = "suggest-words";
1114
+ /**
1115
+ * The kind of dictionary.
1116
+ *
1117
+ * Used to specify the type of dictionary being referenced.
1118
+ *
1119
+ * Values:
1120
+ * - `words` - A dictionary containing words.
1121
+ * - `flag-words` - A dictionary containing flag words.
1122
+ * - `ignore-words` - A dictionary containing words to ignore.
1123
+ * - `suggest-words` - A dictionary containing suggested word corrections.
1124
+ */
1125
+ type DictionaryKind = DictionaryKindWords | DictionaryKindFlagWords | DictionaryKindIgnoreWords | DictionaryKindSuggestWords;
1090
1126
  //#endregion
1091
1127
  //#region src/features.d.ts
1092
1128
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "10.2.2",
7
+ "version": "10.3.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": "22fae7ac63d4330c52fe97eebee743e3541f2e36"
88
+ "gitHead": "d8abd59fa15da6da47955eb6fcca180e8b5cbdbf"
89
89
  }