@cspell/cspell-types 6.1.0-alpha.0 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cspell.schema.json +2 -3
- package/dist/CSpellSettingsDef.d.ts +1 -2
- package/dist/TextOffset.d.ts +21 -0
- package/package.json +4 -4
package/cspell.schema.json
CHANGED
|
@@ -159,9 +159,8 @@
|
|
|
159
159
|
"type": "object"
|
|
160
160
|
},
|
|
161
161
|
"CustomDictionaryPath": {
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"type": "string"
|
|
162
|
+
"$ref": "#/definitions/FsPath",
|
|
163
|
+
"description": "A File System Path to a dictionary file."
|
|
165
164
|
},
|
|
166
165
|
"CustomDictionaryScope": {
|
|
167
166
|
"description": "Specifies the scope of a dictionary.",
|
|
@@ -739,9 +739,8 @@ export declare type TrustLevel = 'trusted' | 'untrusted';
|
|
|
739
739
|
export declare type DictionaryPath = string;
|
|
740
740
|
/**
|
|
741
741
|
* A File System Path to a dictionary file.
|
|
742
|
-
* @pattern ^.*\.txt$
|
|
743
742
|
*/
|
|
744
|
-
export declare type CustomDictionaryPath =
|
|
743
|
+
export declare type CustomDictionaryPath = FsPath;
|
|
745
744
|
export interface RegExpPatternDefinition {
|
|
746
745
|
/**
|
|
747
746
|
* Pattern name, used as an identifier in ignoreRegExpList and includeRegExpList.
|
package/dist/TextOffset.d.ts
CHANGED
|
@@ -20,4 +20,25 @@ export interface TextDocumentOffset extends TextOffset {
|
|
|
20
20
|
col: number;
|
|
21
21
|
line: TextOffset;
|
|
22
22
|
}
|
|
23
|
+
export interface Mapped {
|
|
24
|
+
/**
|
|
25
|
+
* `(i, j)` number pairs where
|
|
26
|
+
* - `i` is the offset in the source
|
|
27
|
+
* - `j` is the offset in the destination
|
|
28
|
+
*
|
|
29
|
+
* Example:
|
|
30
|
+
* - source text = `"caf\xe9"`
|
|
31
|
+
* - mapped text = `"café"`
|
|
32
|
+
* - map = `[3, 3, 7, 4]`, which is equivalent to `[0, 0, 3, 3, 7, 4]`
|
|
33
|
+
* where the `[0, 0]` is unnecessary.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
map: number[];
|
|
37
|
+
}
|
|
38
|
+
export interface TransformedText extends Partial<Mapped> {
|
|
39
|
+
/**
|
|
40
|
+
* Transformed text with an optional map.
|
|
41
|
+
*/
|
|
42
|
+
text: string;
|
|
43
|
+
}
|
|
23
44
|
//# sourceMappingURL=TextOffset.d.ts.map
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "6.1.
|
|
6
|
+
"version": "6.1.2",
|
|
7
7
|
"description": "Types for cspell and cspell-lib",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"typings": "dist/index.d.ts",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"ajv-cli": "^5.0.0",
|
|
51
|
-
"jest": "^28.1.
|
|
51
|
+
"jest": "^28.1.1",
|
|
52
52
|
"rimraf": "^3.0.2",
|
|
53
53
|
"ts-json-schema-generator": "^1.0.0",
|
|
54
|
-
"typescript": "^4.7.
|
|
54
|
+
"typescript": "^4.7.3"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "5ef579108a81bf7206cf53e301374467a3bbde06"
|
|
57
57
|
}
|