@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.
- package/dist/Parser/index.d.mts +127 -2
- package/dist/Parser/index.d.ts +13 -12
- package/dist/Parser/index.js +17 -2
- package/dist/Parser/index.mjs +0 -2
- package/dist/index.d.mts +1610 -2
- package/dist/index.d.ts +1610 -15
- package/dist/index.js +115 -12
- package/dist/index.mjs +85 -2
- package/package.json +4 -3
- package/dist/CSpellReporter.d.ts +0 -164
- package/dist/CSpellReporter.js +0 -14
- package/dist/CSpellSettingsDef.d.ts +0 -755
- package/dist/CSpellSettingsDef.js +0 -3
- package/dist/Dictionary.d.ts +0 -16
- package/dist/Dictionary.js +0 -3
- package/dist/DictionaryDefinition.d.ts +0 -241
- package/dist/DictionaryDefinition.js +0 -3
- package/dist/DictionaryInformation.d.ts +0 -214
- package/dist/DictionaryInformation.js +0 -3
- package/dist/DynamicDictionaryDefinition.d.ts +0 -20
- package/dist/DynamicDictionaryDefinition.js +0 -5
- package/dist/IO.d.ts +0 -9
- package/dist/IO.js +0 -3
- package/dist/InlineDictionary.d.ts +0 -44
- package/dist/InlineDictionary.js +0 -3
- package/dist/TextMap.d.ts +0 -36
- package/dist/TextMap.js +0 -3
- package/dist/TextOffset.d.ts +0 -23
- package/dist/TextOffset.js +0 -3
- package/dist/configFields.d.ts +0 -7
- package/dist/configFields.js +0 -59
- package/dist/defaultConfigSettings.d.ts +0 -5
- package/dist/defaultConfigSettings.js +0 -8
- package/dist/defineConfig.d.ts +0 -3
- package/dist/defineConfig.js +0 -7
- package/dist/features.d.ts +0 -46
- package/dist/features.js +0 -3
- package/dist/suggestionCostsDef.d.ts +0 -88
- package/dist/suggestionCostsDef.js +0 -3
- package/dist/types.d.ts +0 -9
- package/dist/types.js +0 -4
package/dist/configFields.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigFields = void 0;
|
|
4
|
-
exports.ConfigFields = {
|
|
5
|
-
allowCompoundWords: 'allowCompoundWords',
|
|
6
|
-
cache: 'cache',
|
|
7
|
-
caseSensitive: 'caseSensitive',
|
|
8
|
-
description: 'description',
|
|
9
|
-
dictionaries: 'dictionaries',
|
|
10
|
-
dictionaryDefinitions: 'dictionaryDefinitions',
|
|
11
|
-
enabled: 'enabled',
|
|
12
|
-
enabledLanguageIds: 'enabledLanguageIds',
|
|
13
|
-
enableFiletypes: 'enableFiletypes',
|
|
14
|
-
enabledFileTypes: 'enabledFileTypes',
|
|
15
|
-
enableGlobDot: 'enableGlobDot',
|
|
16
|
-
failFast: 'failFast',
|
|
17
|
-
features: 'features',
|
|
18
|
-
files: 'files',
|
|
19
|
-
flagWords: 'flagWords',
|
|
20
|
-
gitignoreRoot: 'gitignoreRoot',
|
|
21
|
-
globRoot: 'globRoot',
|
|
22
|
-
ignorePaths: 'ignorePaths',
|
|
23
|
-
ignoreRegExpList: 'ignoreRegExpList',
|
|
24
|
-
ignoreWords: 'ignoreWords',
|
|
25
|
-
ignoreRandomStrings: 'ignoreRandomStrings',
|
|
26
|
-
import: 'import',
|
|
27
|
-
includeRegExpList: 'includeRegExpList',
|
|
28
|
-
language: 'language',
|
|
29
|
-
languageId: 'languageId',
|
|
30
|
-
languageSettings: 'languageSettings',
|
|
31
|
-
loadDefaultConfiguration: 'loadDefaultConfiguration',
|
|
32
|
-
maxDuplicateProblems: 'maxDuplicateProblems',
|
|
33
|
-
maxNumberOfProblems: 'maxNumberOfProblems',
|
|
34
|
-
minWordLength: 'minWordLength',
|
|
35
|
-
minRandomLength: 'minRandomLength',
|
|
36
|
-
name: 'name',
|
|
37
|
-
noConfigSearch: 'noConfigSearch',
|
|
38
|
-
noSuggestDictionaries: 'noSuggestDictionaries',
|
|
39
|
-
numSuggestions: 'numSuggestions',
|
|
40
|
-
overrides: 'overrides',
|
|
41
|
-
patterns: 'patterns',
|
|
42
|
-
pnpFiles: 'pnpFiles',
|
|
43
|
-
readonly: 'readonly',
|
|
44
|
-
reporters: 'reporters',
|
|
45
|
-
showStatus: 'showStatus',
|
|
46
|
-
spellCheckDelayMs: 'spellCheckDelayMs',
|
|
47
|
-
suggestionNumChanges: 'suggestionNumChanges',
|
|
48
|
-
suggestionsTimeout: 'suggestionsTimeout',
|
|
49
|
-
suggestWords: 'suggestWords',
|
|
50
|
-
useGitignore: 'useGitignore',
|
|
51
|
-
usePnP: 'usePnP',
|
|
52
|
-
userWords: 'userWords',
|
|
53
|
-
validateDirectives: 'validateDirectives',
|
|
54
|
-
words: 'words',
|
|
55
|
-
// Experimental
|
|
56
|
-
parser: 'parser',
|
|
57
|
-
};
|
|
58
|
-
// export const ConfigKeysNames = Object.values(ConfigKeysByField);
|
|
59
|
-
//# sourceMappingURL=configFields.js.map
|
package/dist/defineConfig.d.ts
DELETED
package/dist/defineConfig.js
DELETED
package/dist/features.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These are experimental features and are subject to change or removal without notice.
|
|
3
|
-
*/
|
|
4
|
-
export interface FeaturesExperimental {
|
|
5
|
-
/**
|
|
6
|
-
* Enable/disable using weighted suggestions.
|
|
7
|
-
*/
|
|
8
|
-
'weighted-suggestions': FeatureEnableOnly;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* These are the current set of active features
|
|
12
|
-
*/
|
|
13
|
-
export interface FeaturesActive {
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
featureName?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* These are feature settings that have been deprecated or moved elsewhere they will have no
|
|
21
|
-
* effect on the code but are here to prevent schema errors. The will get cleaned out on major versions.
|
|
22
|
-
*/
|
|
23
|
-
export interface FeaturesDeprecated {
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
featureName?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Features are behaviors or settings that can be explicitly configured.
|
|
31
|
-
*/
|
|
32
|
-
export interface Features extends Partial<FeaturesActive>, Partial<FeaturesDeprecated>, Partial<FeaturesExperimental> {
|
|
33
|
-
}
|
|
34
|
-
export type Feature = FeatureEnableOnly | FeatureWithConfiguration;
|
|
35
|
-
export type FeatureEnableOnly = boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Feature Configuration.
|
|
38
|
-
*/
|
|
39
|
-
export interface FeatureWithConfiguration {
|
|
40
|
-
enable: boolean;
|
|
41
|
-
}
|
|
42
|
-
export type FeatureNamesKnown = keyof Features;
|
|
43
|
-
export type FeatureNamesExperimental = keyof FeaturesExperimental;
|
|
44
|
-
export type FeatureNamesActive = keyof FeaturesActive;
|
|
45
|
-
export type FeatureNamesDeprecated = keyof FeaturesDeprecated;
|
|
46
|
-
//# sourceMappingURL=features.d.ts.map
|
package/dist/features.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A WeightedMapDef enables setting weights for edits between related characters and substrings.
|
|
3
|
-
*
|
|
4
|
-
* Multiple groups can be defined using a `|`.
|
|
5
|
-
* A multi-character substring is defined using `()`.
|
|
6
|
-
*
|
|
7
|
-
* For example, in some languages, some letters sound alike.
|
|
8
|
-
*
|
|
9
|
-
* ```yaml
|
|
10
|
-
* map: 'sc(sh)(sch)(ss)|t(tt)' # two groups.
|
|
11
|
-
* replace: 50 # Make it 1/2 the cost of a normal edit to replace a `t` with `tt`.
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* The following could be used to make inserting, removing, or replacing vowels cheaper.
|
|
15
|
-
* ```yaml
|
|
16
|
-
* map: 'aeiouy'
|
|
17
|
-
* insDel: 50 # Make it is cheaper to insert or delete a vowel.
|
|
18
|
-
* replace: 45 # It is even cheaper to replace one with another.
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* Note: the default edit distance is 100.
|
|
22
|
-
*/
|
|
23
|
-
export type SuggestionCostMapDef = CostMapDefReplace | CostMapDefInsDel | CostMapDefSwap;
|
|
24
|
-
export type SuggestionCostsDefs = SuggestionCostMapDef[];
|
|
25
|
-
interface CostMapDefBase {
|
|
26
|
-
/**
|
|
27
|
-
* The set of substrings to map, these are generally single character strings.
|
|
28
|
-
*
|
|
29
|
-
* Multiple sets can be defined by using a `|` to separate them.
|
|
30
|
-
*
|
|
31
|
-
* Example: `"eéê|aåá"` contains two different sets.
|
|
32
|
-
*
|
|
33
|
-
* To add a multi-character substring use `()`.
|
|
34
|
-
*
|
|
35
|
-
* Example: `"f(ph)(gh)"` results in the following set: `f`, `ph`, `gh`.
|
|
36
|
-
*
|
|
37
|
-
* - To match the beginning of a word, use `^`: `"(^I)""`.
|
|
38
|
-
* - To match the end of a word, use `$`: `"(e$)(ing$)"`.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
map: string;
|
|
42
|
-
/** The cost to insert/delete one of the substrings in the map. Note: insert/delete costs are symmetrical. */
|
|
43
|
-
insDel?: number;
|
|
44
|
-
/**
|
|
45
|
-
* The cost to replace of of the substrings in the map with another substring in the map.
|
|
46
|
-
* Example: Map['a', 'i']
|
|
47
|
-
* This would be the cost to substitute `a` with `i`: Like `bat` to `bit` or the reverse.
|
|
48
|
-
*/
|
|
49
|
-
replace?: number;
|
|
50
|
-
/**
|
|
51
|
-
* The cost to swap two adjacent substrings found in the map.
|
|
52
|
-
* Example: Map['e', 'i']
|
|
53
|
-
* This represents the cost to change `ei` to `ie` or the reverse.
|
|
54
|
-
*/
|
|
55
|
-
swap?: number;
|
|
56
|
-
/**
|
|
57
|
-
* A description to describe the purpose of the map.
|
|
58
|
-
*/
|
|
59
|
-
description?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Add a penalty to the final cost.
|
|
62
|
-
* This is used to discourage certain suggestions.
|
|
63
|
-
*
|
|
64
|
-
* Example:
|
|
65
|
-
* ```yaml
|
|
66
|
-
* # Match adding/removing `-` to the end of a word.
|
|
67
|
-
* map: "$(-$)"
|
|
68
|
-
* replace: 50
|
|
69
|
-
* penalty: 100
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* This makes adding a `-` to the end of a word more expensive.
|
|
73
|
-
*
|
|
74
|
-
* Think of it as taking the toll way for speed but getting the bill later.
|
|
75
|
-
*/
|
|
76
|
-
penalty?: number;
|
|
77
|
-
}
|
|
78
|
-
export interface CostMapDefReplace extends CostMapDefBase {
|
|
79
|
-
replace: number;
|
|
80
|
-
}
|
|
81
|
-
export interface CostMapDefInsDel extends CostMapDefBase {
|
|
82
|
-
insDel: number;
|
|
83
|
-
}
|
|
84
|
-
export interface CostMapDefSwap extends CostMapDefBase {
|
|
85
|
-
swap: number;
|
|
86
|
-
}
|
|
87
|
-
export {};
|
|
88
|
-
//# sourceMappingURL=suggestionCostsDef.d.ts.map
|
package/dist/types.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type Serialize<T> = T extends () => void ? never : T extends null ? null : T extends any[] ? SerializeArray<T> : T extends object ? SerializeObj<T> : Primitives<T>;
|
|
2
|
-
type SerializeObj<T extends object> = {
|
|
3
|
-
[K in keyof T]: K extends string | number ? Serialize<T[K]> : never;
|
|
4
|
-
};
|
|
5
|
-
type SerializeArray<T extends Array<any>> = T extends [infer R] ? [Serialize<R>] : T extends [infer R0, infer R1] ? [Serialize<R0>, Serialize<R1>] : T extends [infer R0, infer R1, infer R2] ? [Serialize<R0>, Serialize<R1>, Serialize<R2>] : T extends Array<infer R> ? Serialize<R>[] : never;
|
|
6
|
-
type Primitives<T> = Extract<T, number | string | null | boolean>;
|
|
7
|
-
export type Serializable = number | string | boolean | null | object;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.js
DELETED