@cspell/cspell-types 10.3.1-alpha.1 → 10.3.2-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/README.md CHANGED
@@ -8,13 +8,11 @@ This package contains no dependencies to avoid any security issues.
8
8
 
9
9
  <!--- @@inject: ../../static/sponsor.md --->
10
10
 
11
- [![GitHub Sponsors](https://img.shields.io/badge/-Street_Side_Software-black?style=for-the-badge&logo=githubsponsors&label=GitHub%20Sponsor%3A)](https://github.com/sponsors/streetsidesoftware)
11
+ If our spell checkers save you time, please consider supporting their development.
12
12
 
13
- [![Open Collective](https://img.shields.io/badge/-CSpell-black?style=for-the-badge&logo=opencollective&label=Open%20Collective%3A)](https://opencollective.com/cspell)
14
-
15
- [![Street Side Software](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fstreetsidesoftware%2Fcspell%2Frefs%2Fheads%2Fmain%2Fstatic%2Fcspell-badge.json)](https://streetsidesoftware.com/sponsor/)
16
-
17
- [![PayPal](https://img.shields.io/badge/-Street_Side_Software-black?style=for-the-badge&logo=paypal&label=PayPal%20Donate%3A)](https://www.paypal.com/donate/?hosted_button_id=26LNBP2Q6MKCY)
13
+ <p align="left">
14
+ <a href="https://github.com/sponsors/streetsidesoftware" title="GitHub Sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/github-sponsor-dark.png" /><img alt="GitHub Sponsor" src="https://cspell.org/img/sponsor/github-sponsor.png" width="180" /></picture></a> &nbsp; <a href="https://www.paypal.com/donate/?hosted_button_id=26LNBP2Q6MKCY" title="PayPal"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/paypal-dark.png" /><img alt="PayPal" src="https://cspell.org/img/sponsor/paypal.png" width="180" /></picture></a> &nbsp; <a href="https://opencollective.com/cspell" title="Open Collective"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/open-collective-dark.png" /><img alt="Open Collective" src="https://cspell.org/img/sponsor/open-collective.png" width="180" /></picture></a> &nbsp; <a href="https://streetsidesoftware.com/sponsor/" title="Street Side Software"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cspell.org/img/sponsor/cspell-dark.png" /><img alt="CSpell" src="https://cspell.org/img/sponsor/cspell.png" width="180" /></picture></a>
15
+ </p>
18
16
 
19
17
  <!--- @@inject-end: ../../static/sponsor.md --->
20
18
 
@@ -26,7 +24,7 @@ npm i -S @cspell/cspell-types
26
24
 
27
25
  ## Usage
28
26
 
29
- Can be use to make writing `cspell.config.js` files easier.
27
+ Can be used to make writing `cspell.config.js` files easier.
30
28
 
31
29
  ```js
32
30
  'use strict';
@@ -61,7 +59,7 @@ module.exports = cspell;
61
59
 
62
60
  ## API
63
61
 
64
- `CSpellSettings` alias `CSpellUserSettings` is the formal definition of the configuration that controls the spell checker.
62
+ `CSpellSettings` (aliased as `CSpellUserSettings`) is the formal definition of the configuration that controls the spell checker.
65
63
 
66
64
  ## CSpell for Enterprise
67
65
 
@@ -88,9 +88,9 @@
88
88
  },
89
89
  "cacheStrategy": {
90
90
  "$ref": "#/definitions/CacheStrategy",
91
- "default": "metadata",
92
- "description": "Strategy to use for detecting changed files, default: metadata",
93
- "markdownDescription": "Strategy to use for detecting changed files, default: metadata"
91
+ "default": "content",
92
+ "description": "Strategy to use for detecting changed files, default: content",
93
+ "markdownDescription": "Strategy to use for detecting changed files, default: content"
94
94
  },
95
95
  "useCache": {
96
96
  "default": false,
@@ -1417,8 +1417,8 @@
1417
1417
  "since": "9.1.0"
1418
1418
  },
1419
1419
  "useIntlWordSegmentation": {
1420
- "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.",
1421
- "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.",
1420
+ "description": "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.",
1421
+ "markdownDescription": "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.",
1422
1422
  "since": "10.2.0",
1423
1423
  "type": "boolean"
1424
1424
  },
@@ -1491,11 +1491,11 @@
1491
1491
  "type": "array"
1492
1492
  },
1493
1493
  "enableFiletypes": {
1494
- "description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
1494
+ "description": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
1495
1495
  "items": {
1496
1496
  "$ref": "#/definitions/LanguageIdSingle"
1497
1497
  },
1498
- "markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
1498
+ "markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
1499
1499
  "scope": "resource",
1500
1500
  "title": "Enable File Types",
1501
1501
  "type": "array",
@@ -1727,8 +1727,8 @@
1727
1727
  "since": "9.1.0"
1728
1728
  },
1729
1729
  "useIntlWordSegmentation": {
1730
- "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.",
1731
- "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.",
1730
+ "description": "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.",
1731
+ "markdownDescription": "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.",
1732
1732
  "since": "10.2.0",
1733
1733
  "type": "boolean"
1734
1734
  },
@@ -2198,11 +2198,11 @@
2198
2198
  "type": "array"
2199
2199
  },
2200
2200
  "enableFiletypes": {
2201
- "description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
2201
+ "description": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
2202
2202
  "items": {
2203
2203
  "$ref": "#/definitions/LanguageIdSingle"
2204
2204
  },
2205
- "markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
2205
+ "markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in addition to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`.\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
2206
2206
  "scope": "resource",
2207
2207
  "title": "Enable File Types",
2208
2208
  "type": "array",
@@ -2291,8 +2291,8 @@
2291
2291
  },
2292
2292
  "globRoot": {
2293
2293
  "$ref": "#/definitions/FSPathResolvable",
2294
- "description": "The root to use for glob patterns found in this configuration. Default: location of the configuration file. For compatibility reasons, config files with version 0.1, the glob root will default to be `${cwd}`.\n\nUse `globRoot` to define a different location. `globRoot` can be relative to the location of this configuration file. Defining globRoot, does not impact imported configurations.\n\nSpecial Values:\n- `${cwd}` - will be replaced with the current working directory.\n- `.` - will be the location of the containing configuration file.",
2295
- "markdownDescription": "The root to use for glob patterns found in this configuration.\nDefault: location of the configuration file.\n For compatibility reasons, config files with version 0.1, the glob root will\n default to be `${cwd}`.\n\nUse `globRoot` to define a different location.\n`globRoot` can be relative to the location of this configuration file.\nDefining globRoot, does not impact imported configurations.\n\nSpecial Values:\n- `${cwd}` - will be replaced with the current working directory.\n- `.` - will be the location of the containing configuration file."
2294
+ "description": "The root to use for glob patterns found in this configuration. Default: location of the configuration file. For compatibility reasons, for config files with version 0.1, the glob root will default to be `${cwd}`.\n\nUse `globRoot` to define a different location. `globRoot` can be relative to the location of this configuration file. Defining globRoot does not impact imported configurations.\n\nSpecial Values:\n- `${cwd}` - will be replaced with the current working directory.\n- `.` - will be the location of the containing configuration file.",
2295
+ "markdownDescription": "The root to use for glob patterns found in this configuration.\nDefault: location of the configuration file.\n For compatibility reasons, for config files with version 0.1, the glob root will\n default to be `${cwd}`.\n\nUse `globRoot` to define a different location.\n`globRoot` can be relative to the location of this configuration file.\nDefining globRoot does not impact imported configurations.\n\nSpecial Values:\n- `${cwd}` - will be replaced with the current working directory.\n- `.` - will be the location of the containing configuration file."
2296
2296
  },
2297
2297
  "id": {
2298
2298
  "description": "Optional identifier.",
@@ -2354,8 +2354,8 @@
2354
2354
  },
2355
2355
  "languageId": {
2356
2356
  "$ref": "#/definitions/MatchingFileType",
2357
- "description": "Forces the spell checker to assume a give language id. Used mainly as an Override.",
2358
- "markdownDescription": "Forces the spell checker to assume a give language id. Used mainly as an Override."
2357
+ "description": "Forces the spell checker to assume a given language id. Used mainly as an Override.",
2358
+ "markdownDescription": "Forces the spell checker to assume a given language id. Used mainly as an Override."
2359
2359
  },
2360
2360
  "languageSettings": {
2361
2361
  "description": "Additional settings for individual languages.\n\nSee [Language Settings](https://cspell.org/configuration/language-settings/) for more details.",
@@ -2544,8 +2544,8 @@
2544
2544
  "type": "boolean"
2545
2545
  },
2546
2546
  "useIntlWordSegmentation": {
2547
- "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.",
2548
- "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.",
2547
+ "description": "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.",
2548
+ "markdownDescription": "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.",
2549
2549
  "since": "10.2.0",
2550
2550
  "type": "boolean"
2551
2551
  },
@@ -1,2 +1,2 @@
1
- import { a as Parser, c as Scope, d as Range, f as SourceMap, i as ParsedText, l as ScopeChain, n as DelegateInfo, o as ParserName, r as ParseResult, s as ParserOptions, t as MappedText, u as ScopeString } from "../index-BXiGhX2J.mjs";
2
- export type { DelegateInfo, MappedText, ParseResult, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap };
1
+ import { a as ParsedTags, c as ParserName, d as ScopeChain, f as ScopeString, i as ParsedTag, l as ParserOptions, m as SourceMap, n as DelegateInfo, o as ParsedText, p as Range, r as ParseResult, s as Parser, t as MappedText, u as Scope } from "../index-CWMq17j-.mjs";
2
+ export type { DelegateInfo, MappedText, ParseResult, ParsedTag, ParsedTags, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap };
@@ -1,2 +1,2 @@
1
- import { a as Parser, c as Scope, d as Range, f as SourceMap, i as ParsedText, l as ScopeChain, n as DelegateInfo, o as ParserName, r as ParseResult, s as ParserOptions, t as MappedText, u as ScopeString } from "../index-BXiGhX2J.js";
2
- export type { DelegateInfo, MappedText, ParseResult, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap };
1
+ import { a as ParsedTags, c as ParserName, d as ScopeChain, f as ScopeString, i as ParsedTag, l as ParserOptions, m as SourceMap, n as DelegateInfo, o as ParsedText, p as Range, r as ParseResult, s as Parser, t as MappedText, u as Scope } from "../index-CWMq17j-.js";
2
+ export type { DelegateInfo, MappedText, ParseResult, ParsedTag, ParsedTags, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap };
@@ -105,6 +105,10 @@ interface ParsedText extends Readonly<Mapped> {
105
105
  * based upon the value of the scope.
106
106
  */
107
107
  readonly scope?: Scope | undefined;
108
+ /**
109
+ * The tags associated with this segment of text.
110
+ */
111
+ readonly tags?: ParsedTags | undefined;
108
112
  /**
109
113
  * Used to delegate parsing the contents of `text` to another parser.
110
114
  *
@@ -158,6 +162,17 @@ interface ScopeChain {
158
162
  */
159
163
  type ScopeString = string;
160
164
  type Scope = ScopeChain | ScopeString;
165
+ type ParsedTag = boolean | string | undefined;
166
+ /**
167
+ * ParsedTags represents a collection of tags associated with a segment of text. Each tag can have a boolean, string, or undefined value.
168
+ *
169
+ * - `undefined` represents a tag that is not set.
170
+ * - `boolean` represents a tag that is either true or false.
171
+ * - `string` represents a tag with a string value.
172
+ */
173
+ interface ParsedTags {
174
+ readonly [tag: string]: ParsedTag;
175
+ }
161
176
  //#endregion
162
177
  //#region src/Parser/TextMap.d.ts
163
178
  type MappedText = Readonly<TransformedText>;
@@ -172,5 +187,5 @@ interface TransformedText extends Mapped {
172
187
  rawText?: string | undefined;
173
188
  }
174
189
  //#endregion
175
- export { Parser as a, Scope as c, Range as d, SourceMap as f, ParsedText as i, ScopeChain as l, DelegateInfo as n, ParserName as o, ParseResult as r, ParserOptions as s, MappedText as t, ScopeString as u };
176
- //# sourceMappingURL=index-BXiGhX2J.d.ts.map
190
+ export { ParsedTags as a, ParserName as c, ScopeChain as d, ScopeString as f, ParsedTag as i, ParserOptions as l, SourceMap as m, DelegateInfo as n, ParsedText as o, Range as p, ParseResult as r, Parser as s, MappedText as t, Scope as u };
191
+ //# sourceMappingURL=index-CWMq17j-.d.mts.map
@@ -105,6 +105,10 @@ interface ParsedText extends Readonly<Mapped> {
105
105
  * based upon the value of the scope.
106
106
  */
107
107
  readonly scope?: Scope | undefined;
108
+ /**
109
+ * The tags associated with this segment of text.
110
+ */
111
+ readonly tags?: ParsedTags | undefined;
108
112
  /**
109
113
  * Used to delegate parsing the contents of `text` to another parser.
110
114
  *
@@ -158,6 +162,17 @@ interface ScopeChain {
158
162
  */
159
163
  type ScopeString = string;
160
164
  type Scope = ScopeChain | ScopeString;
165
+ type ParsedTag = boolean | string | undefined;
166
+ /**
167
+ * ParsedTags represents a collection of tags associated with a segment of text. Each tag can have a boolean, string, or undefined value.
168
+ *
169
+ * - `undefined` represents a tag that is not set.
170
+ * - `boolean` represents a tag that is either true or false.
171
+ * - `string` represents a tag with a string value.
172
+ */
173
+ interface ParsedTags {
174
+ readonly [tag: string]: ParsedTag;
175
+ }
161
176
  //#endregion
162
177
  //#region src/Parser/TextMap.d.ts
163
178
  type MappedText = Readonly<TransformedText>;
@@ -172,5 +187,5 @@ interface TransformedText extends Mapped {
172
187
  rawText?: string | undefined;
173
188
  }
174
189
  //#endregion
175
- export { Parser as a, Scope as c, Range as d, SourceMap as f, ParsedText as i, ScopeChain as l, DelegateInfo as n, ParserName as o, ParseResult as r, ParserOptions as s, MappedText as t, ScopeString as u };
176
- //# sourceMappingURL=index-BXiGhX2J.d.mts.map
190
+ export { ParsedTags as a, ParserName as c, ScopeChain as d, ScopeString as f, ParsedTag as i, ParserOptions as l, SourceMap as m, DelegateInfo as n, ParsedText as o, Range as p, ParseResult as r, Parser as s, MappedText as t, Scope as u };
191
+ //# sourceMappingURL=index-CWMq17j-.d.ts.map
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Parser, d as Range, f as SourceMap, i as ParsedText, o as ParserName, r as ParseResult, s as ParserOptions, t as MappedText } from "./index-BXiGhX2J.mjs";
1
+ import { a as ParsedTags, c as ParserName, i as ParsedTag, l as ParserOptions, m as SourceMap, o as ParsedText, p as Range, r as ParseResult, s as Parser, t as MappedText } from "./index-CWMq17j-.mjs";
2
2
  //#region src/cspell-vfs.d.ts
3
3
  /**
4
4
  * Binary data for CSpellVFS file.
@@ -1229,7 +1229,7 @@ type Serializable = number | string | boolean | null | object;
1229
1229
  //#region src/WordSegmentation.d.ts
1230
1230
  interface WordSegmentationSettings {
1231
1231
  /**
1232
- * Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
1232
+ * Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
1233
1233
  * The locale used for the segmentation is based on the {@link language} setting.
1234
1234
  *
1235
1235
  * @since 10.2.0
@@ -1392,12 +1392,12 @@ interface FileSettings extends ExtendableSettings, CommandLineSettings {
1392
1392
  /**
1393
1393
  * The root to use for glob patterns found in this configuration.
1394
1394
  * Default: location of the configuration file.
1395
- * For compatibility reasons, config files with version 0.1, the glob root will
1395
+ * For compatibility reasons, for config files with version 0.1, the glob root will
1396
1396
  * default to be `${cwd}`.
1397
1397
  *
1398
1398
  * Use `globRoot` to define a different location.
1399
1399
  * `globRoot` can be relative to the location of this configuration file.
1400
- * Defining globRoot, does not impact imported configurations.
1400
+ * Defining globRoot does not impact imported configurations.
1401
1401
  *
1402
1402
  * Special Values:
1403
1403
  * - `${cwd}` - will be replaced with the current working directory.
@@ -1538,8 +1538,8 @@ interface SpellCheckerExtensionSettings {
1538
1538
  /**
1539
1539
  * Enable / Disable checking file types (languageIds).
1540
1540
  *
1541
- * These are in additional to the file types specified by {@link Settings.enabledLanguageIds}.
1542
- * To disable a language, prefix with `!` as in `!json`,
1541
+ * These are in addition to the file types specified by {@link Settings.enabledLanguageIds}.
1542
+ * To disable a language, prefix with `!` as in `!json`.
1543
1543
  *
1544
1544
  *
1545
1545
  * **Example: individual file types**
@@ -1604,7 +1604,7 @@ interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, Spe
1604
1604
  *
1605
1605
  */
1606
1606
  languageSettings?: LanguageSetting[];
1607
- /** Forces the spell checker to assume a give language id. Used mainly as an Override. */
1607
+ /** Forces the spell checker to assume a given language id. Used mainly as an Override. */
1608
1608
  languageId?: MatchingFileType;
1609
1609
  /**
1610
1610
  * By default, the bundled dictionary configurations are loaded. Explicitly setting this to `false`
@@ -1682,8 +1682,8 @@ interface CacheSettings {
1682
1682
  */
1683
1683
  cacheLocation?: FSPathResolvable;
1684
1684
  /**
1685
- * Strategy to use for detecting changed files, default: metadata
1686
- * @default 'metadata'
1685
+ * Strategy to use for detecting changed files, default: content
1686
+ * @default 'content'
1687
1687
  */
1688
1688
  cacheStrategy?: CacheStrategy;
1689
1689
  /**
@@ -2173,5 +2173,5 @@ declare function mergeConfig(settings: CSpellSettings[]): CSpellSettings;
2173
2173
  declare function mergeConfig(...settings: [CSpellSettings, ...CSpellSettings[]]): CSpellSettings;
2174
2174
  declare function mergeConfig(...settings: [CSpellSettings[], ...CSpellSettings[]]): CSpellSettings;
2175
2175
  //#endregion
2176
- export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryDefinitionSimple, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FeaturesSupportedByReporter, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, type ParseResult, type ParsedText, type Parser, type ParserName, type ParserOptions, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
2176
+ export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryDefinitionSimple, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FeaturesSupportedByReporter, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, type ParseResult, type ParsedTag, type ParsedTags, type ParsedText, type Parser, type ParserName, type ParserOptions, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type SoftWordBreak, type SoftWordBreakDefinitions, type SoftWordBreakPattern, type SoftWordBreakRegExp, type SoftWordBreakRegExpString, type SoftWordBreakRule, type SoftWordBreaks, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WordSegmentationSettings, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
2177
2177
  //# sourceMappingURL=index.d.mts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Parser, d as Range, f as SourceMap, i as ParsedText, o as ParserName, r as ParseResult, s as ParserOptions, t as MappedText } from "./index-BXiGhX2J.js";
1
+ import { a as ParsedTags, c as ParserName, i as ParsedTag, l as ParserOptions, m as SourceMap, o as ParsedText, p as Range, r as ParseResult, s as Parser, t as MappedText } from "./index-CWMq17j-.js";
2
2
  //#region src/cspell-vfs.d.ts
3
3
  /**
4
4
  * Binary data for CSpellVFS file.
@@ -1229,7 +1229,7 @@ type Serializable = number | string | boolean | null | object;
1229
1229
  //#region src/WordSegmentation.d.ts
1230
1230
  interface WordSegmentationSettings {
1231
1231
  /**
1232
- * Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
1232
+ * Enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
1233
1233
  * The locale used for the segmentation is based on the {@link language} setting.
1234
1234
  *
1235
1235
  * @since 10.2.0
@@ -1392,12 +1392,12 @@ interface FileSettings extends ExtendableSettings, CommandLineSettings {
1392
1392
  /**
1393
1393
  * The root to use for glob patterns found in this configuration.
1394
1394
  * Default: location of the configuration file.
1395
- * For compatibility reasons, config files with version 0.1, the glob root will
1395
+ * For compatibility reasons, for config files with version 0.1, the glob root will
1396
1396
  * default to be `${cwd}`.
1397
1397
  *
1398
1398
  * Use `globRoot` to define a different location.
1399
1399
  * `globRoot` can be relative to the location of this configuration file.
1400
- * Defining globRoot, does not impact imported configurations.
1400
+ * Defining globRoot does not impact imported configurations.
1401
1401
  *
1402
1402
  * Special Values:
1403
1403
  * - `${cwd}` - will be replaced with the current working directory.
@@ -1538,8 +1538,8 @@ interface SpellCheckerExtensionSettings {
1538
1538
  /**
1539
1539
  * Enable / Disable checking file types (languageIds).
1540
1540
  *
1541
- * These are in additional to the file types specified by {@link Settings.enabledLanguageIds}.
1542
- * To disable a language, prefix with `!` as in `!json`,
1541
+ * These are in addition to the file types specified by {@link Settings.enabledLanguageIds}.
1542
+ * To disable a language, prefix with `!` as in `!json`.
1543
1543
  *
1544
1544
  *
1545
1545
  * **Example: individual file types**
@@ -1604,7 +1604,7 @@ interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, Spe
1604
1604
  *
1605
1605
  */
1606
1606
  languageSettings?: LanguageSetting[];
1607
- /** Forces the spell checker to assume a give language id. Used mainly as an Override. */
1607
+ /** Forces the spell checker to assume a given language id. Used mainly as an Override. */
1608
1608
  languageId?: MatchingFileType;
1609
1609
  /**
1610
1610
  * By default, the bundled dictionary configurations are loaded. Explicitly setting this to `false`
@@ -1682,8 +1682,8 @@ interface CacheSettings {
1682
1682
  */
1683
1683
  cacheLocation?: FSPathResolvable;
1684
1684
  /**
1685
- * Strategy to use for detecting changed files, default: metadata
1686
- * @default 'metadata'
1685
+ * Strategy to use for detecting changed files, default: content
1686
+ * @default 'content'
1687
1687
  */
1688
1688
  cacheStrategy?: CacheStrategy;
1689
1689
  /**
@@ -2173,5 +2173,5 @@ declare function mergeConfig(settings: CSpellSettings[]): CSpellSettings;
2173
2173
  declare function mergeConfig(...settings: [CSpellSettings, ...CSpellSettings[]]): CSpellSettings;
2174
2174
  declare function mergeConfig(...settings: [CSpellSettings[], ...CSpellSettings[]]): CSpellSettings;
2175
2175
  //#endregion
2176
- export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryDefinitionSimple, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FeaturesSupportedByReporter, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, type ParseResult, type ParsedText, type Parser, type ParserName, type ParserOptions, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
2176
+ export { type AdvancedCSpellSettings, type AdvancedCSpellSettingsWithSourceTrace, type BaseSetting, type CSpellPackageSettings, type CSpellReporter, type CSpellReporterEmitters, type CSpellReporterModule, type CSpellSettings, type CSpellSettingsWithSourceTrace, type CSpellUserSettings, type CSpellUserSettingsFields, type CSpellUserSettingsWithComments, type CSpellVFS, type CSpellVFSBinaryData, type CSpellVFSData, type CSpellVFSFile, type CSpellVFSFileEntry, type CSpellVFSFileUrl, type CSpellVFSTextData, type CacheFormat, type CacheSettings, type CacheStrategy, type CharacterSet, type CharacterSetCosts, type CommandLineSettings, ConfigFields, type CustomDictionaryPath, type CustomDictionaryScope, type DebugEmitter, type DictionaryDefinition, type DictionaryDefinitionAlternate, type DictionaryDefinitionAugmented, type DictionaryDefinitionBase, type DictionaryDefinitionCustom, type DictionaryDefinitionInline, type DictionaryDefinitionInlineFlagWords, type DictionaryDefinitionInlineIgnoreWords, type DictionaryDefinitionInlineWords, type DictionaryDefinitionLegacy, type DictionaryDefinitionPreferred, type DictionaryDefinitionSimple, type DictionaryFileTypes, type DictionaryId, type DictionaryInformation, type DictionaryNegRef, type DictionaryPath, type DictionaryRef, type DictionaryReference, type EditCosts, type ErrorEmitter, type ErrorLike, type ExperimentalBaseSettings, type ExperimentalFileSettings, type ExtendableSettings, type FSPathResolvable, type Feature, type Features, type FeaturesSupportedByReporter, type FileSettings, type FileSource, type FsPath, type Glob, type GlobDef, type ImportFileRef, type InMemorySource, type Issue, IssueType, type LanguageId, type LanguageIdMultiple, type LanguageIdMultipleNeg, type LanguageIdSingle, type LanguageSetting, type LanguageSettingFilterFields, type LanguageSettingFilterFieldsDeprecated, type LanguageSettingFilterFieldsPreferred, type LegacySettings, type LocalId, type LocaleId, type MappedText, type MatchingFileType, type MergeSource, type MessageEmitter, type MessageType, type MessageTypeLookup, MessageTypes, type OverrideFilterFields, type OverrideSettings, type ParseResult, type ParsedTag, type ParsedTags, type ParsedText, type Parser, type ParserName, type ParserOptions, type Pattern, type PatternId, type PatternRef, type Plugin, type PnPSettings, type PredefinedPatterns, type ProgressBase, type ProgressEmitter, type ProgressFileBase, type ProgressFileBegin, type ProgressFileComplete, type ProgressItem, type ProgressTypes, type Range, type RegExpPatternDefinition, type RegExpPatternList, type ReplaceEntry, type ReplaceMap, type ReportIssueOptions, type ReporterConfiguration, type ReporterSettings, type ReportingConfiguration, type ResultEmitter, type RunResult, type Settings, type SimpleGlob, type SoftWordBreak, type SoftWordBreakDefinitions, type SoftWordBreakPattern, type SoftWordBreakRegExp, type SoftWordBreakRegExpString, type SoftWordBreakRule, type SoftWordBreaks, type Source, type SourceMap, type SpellingErrorEmitter, type SubstitutionDefinition, type SubstitutionDefinitions, type SubstitutionEntry, type SubstitutionID, type Substitutions, type SuggestionCostMapDef, type SuggestionCostsDefs, type SuggestionsConfiguration, type TextDocumentOffset, type TextOffset, type TrustLevel, type UnknownWordsChoices, type UnknownWordsConfiguration, type Version, type VersionLatest, type VersionLegacy, type WordSegmentationSettings, type WorkspaceTrustSettings, defaultCSpellSettings, defineConfig, mergeConfig, unknownWordsChoices };
2177
2177
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "10.3.1-alpha.1",
7
+ "version": "10.3.2-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": "aa0576e5b7e666a7e8645939871bcfe4fa2a7eb5"
88
+ "gitHead": "c7193065b82df0646e24ab6f6d370c12148f0efc"
89
89
  }