@cspell/cspell-types 5.18.5 → 5.19.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/dist/CSpellSettingsDef.d.ts +2 -2
- package/dist/TextOffset.d.ts +11 -0
- package/dist/index.js +5 -1
- package/package.json +5 -5
|
@@ -16,11 +16,11 @@ export interface CSpellSettings extends FileSettings, LegacySettings {
|
|
|
16
16
|
}
|
|
17
17
|
export interface ImportFileRef {
|
|
18
18
|
filename: string;
|
|
19
|
-
error?: Error;
|
|
19
|
+
error?: Error | undefined;
|
|
20
20
|
referencedBy?: Source[];
|
|
21
21
|
}
|
|
22
22
|
export interface CSpellSettingsWithSourceTrace extends CSpellSettings {
|
|
23
|
-
source?: Source;
|
|
23
|
+
source?: Source | undefined;
|
|
24
24
|
__importRef?: ImportFileRef;
|
|
25
25
|
__imports?: Map<string, ImportFileRef>;
|
|
26
26
|
}
|
package/dist/TextOffset.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
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
|
+
*/
|
|
2
6
|
text: string;
|
|
7
|
+
/**
|
|
8
|
+
* The offset into the document.
|
|
9
|
+
*/
|
|
3
10
|
offset: number;
|
|
11
|
+
/**
|
|
12
|
+
* Assumed to match `text.length` if the text has not been transformed.
|
|
13
|
+
*/
|
|
14
|
+
length?: number;
|
|
4
15
|
}
|
|
5
16
|
export interface TextDocumentOffset extends TextOffset {
|
|
6
17
|
uri?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.19.0",
|
|
7
7
|
"description": "Types for cspell and cspell-lib",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"typings": "dist/index.d.ts",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"ajv-cli": "^5.0.0",
|
|
53
53
|
"jest": "^27.5.1",
|
|
54
54
|
"rimraf": "^3.0.2",
|
|
55
|
-
"ts-json-schema-generator": "^0.
|
|
56
|
-
"typedoc": "0.22.
|
|
55
|
+
"ts-json-schema-generator": "^0.98.0",
|
|
56
|
+
"typedoc": "0.22.13",
|
|
57
57
|
"typedoc-plugin-markdown": "^3.11.14",
|
|
58
|
-
"typescript": "^4.
|
|
58
|
+
"typescript": "^4.6.2"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "7873efe40a3287d3e025f705e1712c12d3cb392e"
|
|
61
61
|
}
|