@cspell/cspell-types 8.17.1 → 8.17.3

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.
Files changed (41) hide show
  1. package/dist/Parser/index.d.mts +127 -2
  2. package/dist/Parser/index.d.ts +13 -12
  3. package/dist/Parser/index.js +17 -2
  4. package/dist/Parser/index.mjs +0 -2
  5. package/dist/index.d.mts +1610 -2
  6. package/dist/index.d.ts +1610 -15
  7. package/dist/index.js +115 -12
  8. package/dist/index.mjs +85 -2
  9. package/package.json +4 -3
  10. package/dist/CSpellReporter.d.ts +0 -164
  11. package/dist/CSpellReporter.js +0 -14
  12. package/dist/CSpellSettingsDef.d.ts +0 -755
  13. package/dist/CSpellSettingsDef.js +0 -3
  14. package/dist/Dictionary.d.ts +0 -16
  15. package/dist/Dictionary.js +0 -3
  16. package/dist/DictionaryDefinition.d.ts +0 -241
  17. package/dist/DictionaryDefinition.js +0 -3
  18. package/dist/DictionaryInformation.d.ts +0 -214
  19. package/dist/DictionaryInformation.js +0 -3
  20. package/dist/DynamicDictionaryDefinition.d.ts +0 -20
  21. package/dist/DynamicDictionaryDefinition.js +0 -5
  22. package/dist/IO.d.ts +0 -9
  23. package/dist/IO.js +0 -3
  24. package/dist/InlineDictionary.d.ts +0 -44
  25. package/dist/InlineDictionary.js +0 -3
  26. package/dist/TextMap.d.ts +0 -36
  27. package/dist/TextMap.js +0 -3
  28. package/dist/TextOffset.d.ts +0 -23
  29. package/dist/TextOffset.js +0 -3
  30. package/dist/configFields.d.ts +0 -7
  31. package/dist/configFields.js +0 -59
  32. package/dist/defaultConfigSettings.d.ts +0 -5
  33. package/dist/defaultConfigSettings.js +0 -8
  34. package/dist/defineConfig.d.ts +0 -3
  35. package/dist/defineConfig.js +0 -7
  36. package/dist/features.d.ts +0 -46
  37. package/dist/features.js +0 -3
  38. package/dist/suggestionCostsDef.d.ts +0 -88
  39. package/dist/suggestionCostsDef.js +0 -3
  40. package/dist/types.d.ts +0 -9
  41. package/dist/types.js +0 -4
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=CSpellSettingsDef.js.map
@@ -1,16 +0,0 @@
1
- export interface DictionaryInfo {
2
- /** The name of the dictionary */
3
- readonly name: string;
4
- /** Description of the dictionary to display. */
5
- readonly description?: string;
6
- }
7
- export interface HasOptions {
8
- ignoreCase?: boolean;
9
- }
10
- export interface FindResult {
11
- }
12
- export interface Dictionary extends DictionaryInfo {
13
- has(word: string, options?: HasOptions): boolean;
14
- find(word: string, options?: HasOptions): FindResult | undefined;
15
- }
16
- //# sourceMappingURL=Dictionary.d.ts.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Dictionary.js.map
@@ -1,241 +0,0 @@
1
- import type { DictionaryInformation } from './DictionaryInformation.js';
2
- import type { InlineDictionary } from './InlineDictionary.js';
3
- export type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
4
- export type DictionaryFileTypes = 'S' | 'W' | 'C' | 'T';
5
- export interface DictionaryDefinitionBase {
6
- /**
7
- * This is the name of a dictionary.
8
- *
9
- * Name Format:
10
- * - Must contain at least 1 number or letter.
11
- * - Spaces are allowed.
12
- * - Leading and trailing space will be removed.
13
- * - Names ARE case-sensitive.
14
- * - Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.
15
- */
16
- name: DictionaryId;
17
- /**
18
- * Optional description of the contents / purpose of the dictionary.
19
- */
20
- description?: string;
21
- /** Replacement pairs. */
22
- repMap?: ReplaceMap;
23
- /** Use Compounds. */
24
- useCompounds?: boolean;
25
- /**
26
- * Indicate that suggestions should not come from this dictionary.
27
- * Words in this dictionary are considered correct, but will not be
28
- * used when making spell correction suggestions.
29
- *
30
- * Note: if a word is suggested by another dictionary, but found in
31
- * this dictionary, it will be removed from the set of
32
- * possible suggestions.
33
- */
34
- noSuggest?: boolean | undefined;
35
- /**
36
- * Type of file:
37
- * - S - single word per line,
38
- * - W - each line can contain one or more words separated by space,
39
- * - C - each line is treated like code (Camel Case is allowed).
40
- *
41
- * Default is S.
42
- *
43
- * C is the slowest to load due to the need to split each line based upon code splitting rules.
44
- *
45
- * Note: this settings does not apply to inline dictionaries or `.trie` files.
46
- *
47
- * @default "S"
48
- */
49
- type?: DictionaryFileTypes | undefined;
50
- }
51
- export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase {
52
- /** Path to the file. */
53
- path: DictionaryPath;
54
- /**
55
- * Only for legacy dictionary definitions.
56
- * @deprecated true
57
- * @deprecationMessage Use {@link path} instead.
58
- * @hidden
59
- */
60
- file?: undefined;
61
- }
62
- /**
63
- * Used to provide extra data related to the dictionary
64
- */
65
- export interface DictionaryDefinitionAugmented extends DictionaryDefinitionPreferred {
66
- dictionaryInformation?: DictionaryInformation;
67
- }
68
- /**
69
- * Inline Dictionary Definition
70
- *
71
- * All words are defined inline.
72
- */
73
- interface DictionaryDefinitionInlineBase extends DictionaryDefinitionBase, InlineDictionary {
74
- /**
75
- * Not used
76
- * @hidden
77
- */
78
- path?: undefined;
79
- /**
80
- * Not used
81
- * @hidden
82
- */
83
- file?: undefined;
84
- /**
85
- * Not used
86
- * @hidden
87
- */
88
- type?: DictionaryDefinitionBase['type'];
89
- /**
90
- * Use `ignoreWords` instead.
91
- * @hidden
92
- */
93
- noSuggest?: DictionaryDefinitionBase['noSuggest'];
94
- }
95
- export interface DictionaryDefinitionInlineWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'words'>> {
96
- words: string[];
97
- }
98
- export interface DictionaryDefinitionInlineFlagWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'flagWords'>> {
99
- flagWords: string[];
100
- }
101
- export interface DictionaryDefinitionInlineIgnoreWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'ignoreWords'>> {
102
- ignoreWords: string[];
103
- }
104
- export interface DictionaryDefinitionInlineSuggestWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'suggestWords'>> {
105
- suggestWords: string[];
106
- }
107
- /**
108
- * Inline Dictionary Definitions
109
- * @since 6.23.0
110
- */
111
- export type DictionaryDefinitionInline = DictionaryDefinitionInlineWords | DictionaryDefinitionInlineIgnoreWords | DictionaryDefinitionInlineFlagWords | DictionaryDefinitionInlineSuggestWords;
112
- /**
113
- * Only for legacy dictionary definitions.
114
- * @deprecated true
115
- * @deprecationMessage Use {@link DictionaryDefinitionPreferred} instead.
116
- */
117
- export interface DictionaryDefinitionAlternate extends DictionaryDefinitionBase {
118
- /** @hidden */
119
- path?: undefined;
120
- /**
121
- * Path to the file, only for legacy dictionary definitions.
122
- * @deprecated true
123
- * @deprecationMessage Use `path` instead.
124
- */
125
- file: DictionaryPath;
126
- /** @hidden */
127
- suggestionEditCosts?: undefined;
128
- }
129
- /**
130
- * @deprecated true
131
- * @hidden
132
- */
133
- export interface DictionaryDefinitionLegacy extends DictionaryDefinitionBase {
134
- /** Path to the file, if undefined the path to the extension dictionaries is assumed. */
135
- path?: FsDictionaryPath;
136
- /**
137
- * File name.
138
- * @deprecated true
139
- * @deprecationMessage Use {@link path} instead.
140
- */
141
- file: FsDictionaryPath;
142
- /**
143
- * Type of file:
144
- * - S - single word per line,
145
- * - W - each line can contain one or more words separated by space,
146
- * - C - each line is treated like code (Camel Case is allowed).
147
- *
148
- * Default is S.
149
- *
150
- * C is the slowest to load due to the need to split each line based upon code splitting rules.
151
- * @default "S"
152
- */
153
- type?: DictionaryFileTypes;
154
- /**
155
- * @hidden
156
- */
157
- suggestionEditCosts?: undefined;
158
- }
159
- /**
160
- * Specifies the scope of a dictionary.
161
- */
162
- export type CustomDictionaryScope = 'user' | 'workspace' | 'folder';
163
- /**
164
- * For Defining Custom dictionaries. They are generally scoped to a
165
- * `user`, `workspace`, or `folder`.
166
- * When `addWords` is true, indicates that the spell checker can add words
167
- * to the file.
168
- *
169
- * Note: only plain text files with one word per line are supported at this moment.
170
- */
171
- export interface DictionaryDefinitionCustom extends DictionaryDefinitionPreferred {
172
- /** Path to custom dictionary text file. */
173
- path: CustomDictionaryPath;
174
- /**
175
- * Defines the scope for when words will be added to the dictionary.
176
- *
177
- * Scope values: `user`, `workspace`, `folder`.
178
- */
179
- scope?: CustomDictionaryScope | CustomDictionaryScope[];
180
- /**
181
- * When `true`, let's the spell checker know that words can be added to this dictionary.
182
- */
183
- addWords: boolean;
184
- }
185
- /**
186
- * This is the name of a dictionary.
187
- *
188
- * Name Format:
189
- * - Must contain at least 1 number or letter.
190
- * - Spaces are allowed.
191
- * - Leading and trailing space will be removed.
192
- * - Names ARE case-sensitive.
193
- * - Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.
194
- *
195
- * @pattern ^(?=[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
196
- */
197
- export type DictionaryId = string;
198
- export type ReplaceEntry = [string, string];
199
- export type ReplaceMap = ReplaceEntry[];
200
- /**
201
- * A File System Path. Relative paths are relative to the configuration file.
202
- */
203
- export type FsDictionaryPath = string;
204
- /**
205
- * A File System Path to a dictionary file.
206
- * Pattern: `^.*\.(?:txt|trie|dic)(?:\.gz)?$`
207
- */
208
- export type DictionaryPath = string;
209
- /**
210
- * A File System Path to a dictionary file.
211
- */
212
- export type CustomDictionaryPath = FsDictionaryPath;
213
- /**
214
- * Reference to a dictionary by name.
215
- * One of:
216
- * - {@link DictionaryRef}
217
- * - {@link DictionaryNegRef}
218
- */
219
- export type DictionaryReference = DictionaryRef | DictionaryNegRef;
220
- /**
221
- * This a reference to a named dictionary.
222
- * It is expected to match the name of a dictionary.
223
- */
224
- export type DictionaryRef = DictionaryId;
225
- /**
226
- * This a negative reference to a named dictionary.
227
- *
228
- * It is used to exclude or include a dictionary by name.
229
- *
230
- * The reference starts with 1 or more `!`.
231
- * - `!<dictionary_name>` - Used to exclude the dictionary matching `<dictionary_name>`.
232
- * - `!!<dictionary_name>` - Used to re-include a dictionary matching `<dictionary_name>`.
233
- * Overrides `!<dictionary_name>`.
234
- * - `!!!<dictionary_name>` - Used to exclude a dictionary matching `<dictionary_name>`.
235
- * Overrides `!!<dictionary_name>`.
236
- *
237
- * @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
238
- */
239
- export type DictionaryNegRef = string;
240
- export {};
241
- //# sourceMappingURL=DictionaryDefinition.d.ts.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=DictionaryDefinition.js.map
@@ -1,214 +0,0 @@
1
- import type { SuggestionCostsDefs } from './suggestionCostsDef.js';
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
- *
22
- * Default: `"\u0300-\u0341"`
23
- */
24
- accents?: CharacterSet | CharacterSetCosts[];
25
- /**
26
- * Define edit costs.
27
- */
28
- costs?: EditCosts;
29
- /**
30
- * Used in making suggestions. The lower the value, the more likely the suggestion
31
- * will be near the top of the suggestion list.
32
- */
33
- suggestionEditCosts?: SuggestionCostsDefs | undefined;
34
- /**
35
- * Used by dictionary authors
36
- */
37
- hunspellInformation?: HunspellInformation;
38
- /**
39
- * A collection of patterns to test against the suggested words.
40
- * If the word matches the pattern, then the penalty is applied.
41
- */
42
- adjustments?: PatternAdjustment[];
43
- /**
44
- * An optional set of characters that can possibly be removed from a word before
45
- * checking it.
46
- *
47
- * This is useful in languages like Arabic where Harakat accents are optional.
48
- *
49
- * Note: All matching characters are removed or none. Partial removal is not supported.
50
- */
51
- ignore?: CharacterSet;
52
- }
53
- export interface HunspellInformation {
54
- /**
55
- * Selected Hunspell AFF content.
56
- * The content must be UTF-8
57
- *
58
- * Sections:
59
- * - TRY
60
- * - MAP
61
- * - REP
62
- * - KEY
63
- * - ICONV
64
- * - OCONV
65
- *
66
- * Example:
67
- * ```hunspell
68
- * # Comment
69
- * TRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ`
70
- * MAP aàâäAÀÂÄ
71
- * MAP eéèêëEÉÈÊË
72
- * MAP iîïyIÎÏY
73
- * MAP oôöOÔÖ
74
- * MAP (IJ)(IJ)
75
- * ```
76
- */
77
- aff: HunspellAffContent;
78
- /** The costs to apply when using the hunspell settings */
79
- costs?: HunspellCosts;
80
- }
81
- /**
82
- * Selected Hunspell AFF content.
83
- * The content must be UTF-8
84
- *
85
- * Sections:
86
- * - TRY
87
- * - NO-TRY
88
- * - MAP
89
- * - REP
90
- * - KEY
91
- * - ICONV
92
- * - OCONV
93
- *
94
- * Example:
95
- * ```hunspell
96
- * # Comment
97
- * TRY aeistlunkodmrvpgjhäõbüoöfcwzxðqþ`
98
- * NO-TRY -0123456789 # Discourage adding numbers and dashes.
99
- * MAP aàâäAÀÂÄ
100
- * MAP eéèêëEÉÈÊË
101
- * MAP iîïyIÎÏY
102
- * MAP oôöOÔÖ
103
- * MAP (IJ)(IJ)
104
- * ```
105
- */
106
- type HunspellAffContent = string;
107
- interface HunspellCosts extends EditCosts {
108
- /**
109
- * The cost of inserting / deleting / or swapping any `tryChars`
110
- * Defaults to `baseCosts`
111
- */
112
- tryCharCost?: number;
113
- /**
114
- * The cost of replacing or swapping any adjacent keyboard characters.
115
- *
116
- * This should be slightly cheaper than `tryCharCost`.
117
- * @default 99
118
- */
119
- keyboardCost?: number;
120
- /**
121
- * mapSet replacement cost is the cost to substitute one character with another from
122
- * the same set.
123
- *
124
- * Map characters are considered very similar to each other and are often
125
- * the cause of simple mistakes.
126
- *
127
- * @default 25
128
- */
129
- mapCost?: number;
130
- /**
131
- * The cost to convert between convert pairs.
132
- *
133
- * The value should be slightly higher than the mapCost.
134
- *
135
- * @default 30
136
- */
137
- ioConvertCost?: number;
138
- /**
139
- * The cost to substitute pairs found in the replace settings.
140
- *
141
- * @default 75
142
- */
143
- replaceCosts?: number;
144
- }
145
- /**
146
- *
147
- */
148
- export interface EditCosts {
149
- /**
150
- * This is the base cost for making an edit.
151
- * @default 100
152
- */
153
- baseCost?: number;
154
- /**
155
- * This is the cost for characters not in the alphabet.
156
- * @default 110
157
- */
158
- nonAlphabetCosts?: number;
159
- /**
160
- * The extra cost incurred for changing the first letter of a word.
161
- * This value should be less than `100 - baseCost`.
162
- * @default 4
163
- */
164
- firstLetterPenalty?: number;
165
- /**
166
- * The cost to change capitalization.
167
- * This should be very cheap, it helps with fixing capitalization issues.
168
- * @default 1
169
- */
170
- capsCosts?: number;
171
- /**
172
- * The cost to add / remove an accent
173
- * This should be very cheap, it helps with fixing accent issues.
174
- * @default 1
175
- */
176
- accentCosts?: number;
177
- }
178
- /**
179
- * This is a set of characters that can include `-` or `|`
180
- * - `-` - indicates a range of characters: `a-c` => `abc`
181
- * - `|` - is a group separator, indicating that the characters on either side
182
- * are not related.
183
- */
184
- export type CharacterSet = string;
185
- export interface CharacterSetCosts {
186
- /**
187
- * This is a set of characters that can include `-` or `|`
188
- * - `-` - indicates a range of characters: `a-c` => `abc`
189
- * - `|` - is a group separator, indicating that the characters on either side
190
- * are not related.
191
- */
192
- characters: CharacterSet;
193
- /** the cost to insert / delete / replace / swap the characters in a group */
194
- cost: number;
195
- /**
196
- * The penalty cost to apply if the accent is used.
197
- * This is used to discourage
198
- */
199
- penalty?: number;
200
- }
201
- /**
202
- * @hidden
203
- */
204
- export type IRegExp = RegExp;
205
- export interface PatternAdjustment {
206
- /** Id of the Adjustment, i.e. `short-compound` */
207
- id: string;
208
- /** RegExp pattern to match */
209
- regexp: string | IRegExp;
210
- /** The amount of penalty to apply. */
211
- penalty: number;
212
- }
213
- export {};
214
- //# sourceMappingURL=DictionaryInformation.d.ts.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=DictionaryInformation.js.map
@@ -1,20 +0,0 @@
1
- export interface DictionaryContext {
2
- /** The file to spell check. */
3
- file: URL;
4
- /** The working directory. */
5
- cwd: URL;
6
- }
7
- export interface DynamicDictionary {
8
- name: string;
9
- }
10
- export interface DynamicDictionaryContext {
11
- /**
12
- * The url to the config file that defines the dictionary function.
13
- */
14
- configUrl: URL;
15
- /** The working directory. */
16
- cwd: URL;
17
- readFile(url: URL): Promise<Uint8Array>;
18
- }
19
- export declare function loadDictionary(): void;
20
- //# sourceMappingURL=DynamicDictionaryDefinition.d.ts.map
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadDictionary = loadDictionary;
4
- function loadDictionary() { }
5
- //# sourceMappingURL=DynamicDictionaryDefinition.js.map
package/dist/IO.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export interface FileResource {
2
- url: URL;
3
- getText(): string;
4
- getBytes(): Uint8Array;
5
- }
6
- export interface VirtualFileSystem {
7
- readFile(url: URL): Promise<FileResource>;
8
- }
9
- //# sourceMappingURL=IO.d.ts.map
package/dist/IO.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IO.js.map
@@ -1,44 +0,0 @@
1
- export interface InlineDictionary {
2
- /**
3
- * List of words to be considered correct.
4
- */
5
- words?: string[];
6
- /**
7
- * List of words to always be considered incorrect. Words found in `flagWords` override `words`.
8
- *
9
- * Format of `flagWords`
10
- * - single word entry - `word`
11
- * - with suggestions - `word:suggestion` or `word->suggestion, suggestions`
12
- *
13
- * Example:
14
- * ```ts
15
- * "flagWords": [
16
- * "color: colour",
17
- * "incase: in case, encase",
18
- * "canot->cannot",
19
- * "cancelled->canceled"
20
- * ]
21
- * ```
22
- */
23
- flagWords?: string[];
24
- /**
25
- * List of words to be ignored. An ignored word will not show up as an error, even if it is
26
- * also in the `flagWords`.
27
- */
28
- ignoreWords?: string[];
29
- /**
30
- * A list of suggested replacements for words.
31
- * Suggested words provide a way to make preferred suggestions on word replacements.
32
- * To hint at a preferred change, but not to require it.
33
- *
34
- * Format of `suggestWords`
35
- * - Single suggestion (possible auto fix)
36
- * - `word: suggestion`
37
- * - `word->suggestion`
38
- * - Multiple suggestions (not auto fixable)
39
- * - `word: first, second, third`
40
- * - `word->first, second, third`
41
- */
42
- suggestWords?: string[];
43
- }
44
- //# sourceMappingURL=InlineDictionary.d.ts.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=InlineDictionary.js.map
package/dist/TextMap.d.ts DELETED
@@ -1,36 +0,0 @@
1
- export type MappedText = Readonly<TransformedText>;
2
- export type Range = readonly [start: number, end: number];
3
- export interface Mapped {
4
- /**
5
- * `(i, j)` number pairs where
6
- * - `i` is the offset in the source
7
- * - `j` is the offset in the destination
8
- *
9
- * Example:
10
- * - source text = `"caf\xe9"`
11
- * - mapped text = `"café"`
12
- * - map = `[3, 3, 7, 4]`, which is equivalent to `[0, 0, 3, 3, 7, 4]`
13
- * where the `[0, 0]` is unnecessary.
14
- *
15
- */
16
- map: number[];
17
- }
18
- interface TransformedText extends PartialOrUndefined<Mapped> {
19
- /**
20
- * Transformed text with an optional map.
21
- */
22
- text: string;
23
- /**
24
- * The original text
25
- */
26
- rawText?: string | undefined;
27
- /**
28
- * The start and end offset of the text in the document.
29
- */
30
- range: Range;
31
- }
32
- type PartialOrUndefined<T> = {
33
- [P in keyof T]?: T[P] | undefined;
34
- };
35
- export {};
36
- //# sourceMappingURL=TextMap.d.ts.map
package/dist/TextMap.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=TextMap.js.map
@@ -1,23 +0,0 @@
1
- export interface TextOffset {
2
- /**
3
- * The text found at the offset. If the text has been transformed, then the length might not match `length`.
4
- * Example: Original: `cafe\u0301`, text: `café`
5
- */
6
- text: string;
7
- /**
8
- * The offset into the document.
9
- */
10
- offset: number;
11
- /**
12
- * Assumed to match `text.length` if the text has not been transformed.
13
- */
14
- length?: number;
15
- }
16
- export interface TextDocumentOffset extends TextOffset {
17
- uri?: string;
18
- doc: string;
19
- row: number;
20
- col: number;
21
- line: TextOffset;
22
- }
23
- //# sourceMappingURL=TextOffset.d.ts.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=TextOffset.js.map
@@ -1,7 +0,0 @@
1
- import type { CSpellUserSettings } from './CSpellSettingsDef.js';
2
- export type ConfigKeys = Exclude<keyof CSpellUserSettings, '$schema' | 'version' | 'id'>;
3
- export type CSpellUserSettingsFields = {
4
- [key in ConfigKeys]: key;
5
- };
6
- export declare const ConfigFields: CSpellUserSettingsFields;
7
- //# sourceMappingURL=configFields.d.ts.map