@cspell/cspell-types 10.3.5 → 10.4.0-alpha.1
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
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, d as Scope, f as ScopeChain, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, n as DelegateInfo, o as ParsedTags, p as ScopeString, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "../index-
|
|
1
|
+
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, d as Scope, f as ScopeChain, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, n as DelegateInfo, o as ParsedTags, p as ScopeString, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "../index-eOBgsj8d.mjs";
|
|
2
2
|
export type { DelegateInfo, DocumentParser, MappedText, ParseResult, ParsedTag, ParsedTags, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap, TextDocument, TextDocumentFragment };
|
package/dist/Parser/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, d as Scope, f as ScopeChain, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, n as DelegateInfo, o as ParsedTags, p as ScopeString, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "../index-
|
|
1
|
+
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, d as Scope, f as ScopeChain, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, n as DelegateInfo, o as ParsedTags, p as ScopeString, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "../index-eOBgsj8d.js";
|
|
2
2
|
export type { DelegateInfo, DocumentParser, MappedText, ParseResult, ParsedTag, ParsedTags, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap, TextDocument, TextDocumentFragment };
|
|
@@ -51,7 +51,7 @@ type SourceMap = number[];
|
|
|
51
51
|
type Range = readonly [start: number, end: number];
|
|
52
52
|
/**
|
|
53
53
|
* Interface used to pass documents to the parser.
|
|
54
|
-
* @since 10.
|
|
54
|
+
* @since 10.5.0
|
|
55
55
|
*/
|
|
56
56
|
interface TextDocument {
|
|
57
57
|
/**
|
|
@@ -67,7 +67,7 @@ interface TextDocument {
|
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* A fragment of a text document, representing a subset of the full document.
|
|
70
|
-
* @since 10.
|
|
70
|
+
* @since 10.5.0
|
|
71
71
|
*/
|
|
72
72
|
interface TextDocumentFragment extends TextDocument {
|
|
73
73
|
/**
|
|
@@ -252,4 +252,4 @@ interface TransformedText extends Mapped {
|
|
|
252
252
|
}
|
|
253
253
|
//#endregion
|
|
254
254
|
export { TextDocumentFragment as _, ParsedTag as a, Parser as c, Scope as d, ScopeChain as f, TextDocument as g, SourceMap as h, ParseResult as i, ParserName as l, Range as m, DelegateInfo as n, ParsedTags as o, ScopeString as p, DocumentParser as r, ParsedText as s, MappedText as t, ParserOptions as u };
|
|
255
|
-
//# sourceMappingURL=index-
|
|
255
|
+
//# sourceMappingURL=index-eOBgsj8d.d.mts.map
|
|
@@ -51,7 +51,7 @@ type SourceMap = number[];
|
|
|
51
51
|
type Range = readonly [start: number, end: number];
|
|
52
52
|
/**
|
|
53
53
|
* Interface used to pass documents to the parser.
|
|
54
|
-
* @since 10.
|
|
54
|
+
* @since 10.5.0
|
|
55
55
|
*/
|
|
56
56
|
interface TextDocument {
|
|
57
57
|
/**
|
|
@@ -67,7 +67,7 @@ interface TextDocument {
|
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* A fragment of a text document, representing a subset of the full document.
|
|
70
|
-
* @since 10.
|
|
70
|
+
* @since 10.5.0
|
|
71
71
|
*/
|
|
72
72
|
interface TextDocumentFragment extends TextDocument {
|
|
73
73
|
/**
|
|
@@ -252,4 +252,4 @@ interface TransformedText extends Mapped {
|
|
|
252
252
|
}
|
|
253
253
|
//#endregion
|
|
254
254
|
export { TextDocumentFragment as _, ParsedTag as a, Parser as c, Scope as d, ScopeChain as f, TextDocument as g, SourceMap as h, ParseResult as i, ParserName as l, Range as m, DelegateInfo as n, ParsedTags as o, ScopeString as p, DocumentParser as r, ParsedText as s, MappedText as t, ParserOptions as u };
|
|
255
|
-
//# sourceMappingURL=index-
|
|
255
|
+
//# sourceMappingURL=index-eOBgsj8d.d.ts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, o as ParsedTags, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "./index-
|
|
1
|
+
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, o as ParsedTags, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "./index-eOBgsj8d.mjs";
|
|
2
2
|
//#region src/cspell-vfs.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Binary data for CSpellVFS file.
|
|
@@ -244,7 +244,7 @@ interface ProgressFileBegin extends ProgressFileBase {
|
|
|
244
244
|
}
|
|
245
245
|
type ProgressEmitter = (p: ProgressItem | ProgressFileComplete) => void;
|
|
246
246
|
interface RunResult {
|
|
247
|
-
/** Number of files
|
|
247
|
+
/** Number of files found, including skipped files. */
|
|
248
248
|
files: number;
|
|
249
249
|
/** Set of files where issues were found. */
|
|
250
250
|
filesWithIssues: Set<string>;
|
|
@@ -428,7 +428,7 @@ interface CSpellSettingsValidation {
|
|
|
428
428
|
*
|
|
429
429
|
* @default { "*": true }
|
|
430
430
|
* @experimental
|
|
431
|
-
* @since 10.
|
|
431
|
+
* @since 10.5.0
|
|
432
432
|
*/
|
|
433
433
|
validate?: ValidationTags;
|
|
434
434
|
}
|
|
@@ -447,13 +447,13 @@ interface ValidationTags {
|
|
|
447
447
|
* The default validation setting for any tag not otherwise matched.
|
|
448
448
|
* @default true
|
|
449
449
|
*/
|
|
450
|
-
"*"?: boolean;
|
|
450
|
+
"*"?: boolean | undefined;
|
|
451
451
|
/**
|
|
452
452
|
* Validation setting for the specific tag.
|
|
453
453
|
*
|
|
454
454
|
* If not specified, the default (`'*'`) will be used.
|
|
455
455
|
*/
|
|
456
|
-
[tag: TagPattern]: boolean;
|
|
456
|
+
[tag: TagPattern]: boolean | undefined;
|
|
457
457
|
}
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/suggestionCostsDef.d.ts
|
|
@@ -1229,7 +1229,7 @@ interface FeatureWithConfiguration {
|
|
|
1229
1229
|
//#region src/Plugin/index.d.ts
|
|
1230
1230
|
type CreateParser<Options = unknown> = (name: string, options?: Options) => Promise<DocumentParser | undefined> | DocumentParser | undefined;
|
|
1231
1231
|
/**
|
|
1232
|
-
* @since 10.
|
|
1232
|
+
* @since 10.5.0
|
|
1233
1233
|
*/
|
|
1234
1234
|
interface AvailableParsers<Options> {
|
|
1235
1235
|
/**
|
|
@@ -1239,7 +1239,7 @@ interface AvailableParsers<Options> {
|
|
|
1239
1239
|
[name: string]: DocumentParser | Parser | CreateParser<Options>;
|
|
1240
1240
|
}
|
|
1241
1241
|
/**
|
|
1242
|
-
* @since 10.
|
|
1242
|
+
* @since 10.5.0
|
|
1243
1243
|
*/
|
|
1244
1244
|
type Parsers = (DocumentParser | Parser)[];
|
|
1245
1245
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, o as ParsedTags, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "./index-
|
|
1
|
+
import { _ as TextDocumentFragment, a as ParsedTag, c as Parser, g as TextDocument, h as SourceMap, i as ParseResult, l as ParserName, m as Range, o as ParsedTags, r as DocumentParser, s as ParsedText, t as MappedText, u as ParserOptions } from "./index-eOBgsj8d.js";
|
|
2
2
|
//#region src/cspell-vfs.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Binary data for CSpellVFS file.
|
|
@@ -244,7 +244,7 @@ interface ProgressFileBegin extends ProgressFileBase {
|
|
|
244
244
|
}
|
|
245
245
|
type ProgressEmitter = (p: ProgressItem | ProgressFileComplete) => void;
|
|
246
246
|
interface RunResult {
|
|
247
|
-
/** Number of files
|
|
247
|
+
/** Number of files found, including skipped files. */
|
|
248
248
|
files: number;
|
|
249
249
|
/** Set of files where issues were found. */
|
|
250
250
|
filesWithIssues: Set<string>;
|
|
@@ -428,7 +428,7 @@ interface CSpellSettingsValidation {
|
|
|
428
428
|
*
|
|
429
429
|
* @default { "*": true }
|
|
430
430
|
* @experimental
|
|
431
|
-
* @since 10.
|
|
431
|
+
* @since 10.5.0
|
|
432
432
|
*/
|
|
433
433
|
validate?: ValidationTags;
|
|
434
434
|
}
|
|
@@ -447,13 +447,13 @@ interface ValidationTags {
|
|
|
447
447
|
* The default validation setting for any tag not otherwise matched.
|
|
448
448
|
* @default true
|
|
449
449
|
*/
|
|
450
|
-
"*"?: boolean;
|
|
450
|
+
"*"?: boolean | undefined;
|
|
451
451
|
/**
|
|
452
452
|
* Validation setting for the specific tag.
|
|
453
453
|
*
|
|
454
454
|
* If not specified, the default (`'*'`) will be used.
|
|
455
455
|
*/
|
|
456
|
-
[tag: TagPattern]: boolean;
|
|
456
|
+
[tag: TagPattern]: boolean | undefined;
|
|
457
457
|
}
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/suggestionCostsDef.d.ts
|
|
@@ -1229,7 +1229,7 @@ interface FeatureWithConfiguration {
|
|
|
1229
1229
|
//#region src/Plugin/index.d.ts
|
|
1230
1230
|
type CreateParser<Options = unknown> = (name: string, options?: Options) => Promise<DocumentParser | undefined> | DocumentParser | undefined;
|
|
1231
1231
|
/**
|
|
1232
|
-
* @since 10.
|
|
1232
|
+
* @since 10.5.0
|
|
1233
1233
|
*/
|
|
1234
1234
|
interface AvailableParsers<Options> {
|
|
1235
1235
|
/**
|
|
@@ -1239,7 +1239,7 @@ interface AvailableParsers<Options> {
|
|
|
1239
1239
|
[name: string]: DocumentParser | Parser | CreateParser<Options>;
|
|
1240
1240
|
}
|
|
1241
1241
|
/**
|
|
1242
|
-
* @since 10.
|
|
1242
|
+
* @since 10.5.0
|
|
1243
1243
|
*/
|
|
1244
1244
|
type Parsers = (DocumentParser | Parser)[];
|
|
1245
1245
|
/**
|
package/package.json
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cspell/cspell-types",
|
|
3
|
+
"version": "10.4.0-alpha.1",
|
|
4
|
+
"description": "Types for cspell and cspell-lib",
|
|
3
5
|
"publishConfig": {
|
|
4
6
|
"access": "public",
|
|
5
7
|
"provenance": true
|
|
6
8
|
},
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
9
|
+
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/streetsidesoftware/cspell.git",
|
|
13
|
+
"directory": "packages/cspell-types"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/streetsidesoftware/cspell/issues?q=is%3Aissue%20state%3Aopen%20label%3Acspell-types"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"cspell",
|
|
20
|
+
"types"
|
|
21
|
+
],
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "Jason Dent",
|
|
10
24
|
"sideEffects": false,
|
|
11
|
-
"
|
|
12
|
-
"module": "./dist/index.mjs",
|
|
25
|
+
"type": "commonjs",
|
|
13
26
|
"exports": {
|
|
14
27
|
".": {
|
|
15
28
|
"import": "./dist/index.mjs",
|
|
@@ -24,6 +37,8 @@
|
|
|
24
37
|
"require": "./cspell.schema.json"
|
|
25
38
|
}
|
|
26
39
|
},
|
|
40
|
+
"main": "./dist/index.js",
|
|
41
|
+
"module": "./dist/index.mjs",
|
|
27
42
|
"types": "./dist/index.d.ts",
|
|
28
43
|
"typesVersions": {
|
|
29
44
|
"*": {
|
|
@@ -48,21 +63,6 @@
|
|
|
48
63
|
]
|
|
49
64
|
}
|
|
50
65
|
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
53
|
-
"build": "pnpm build:tsc && pnpm build:tsdown && pnpm run build-schema",
|
|
54
|
-
"build:tsc": "tsc -p tsconfig.json",
|
|
55
|
-
"build:tsdown": "tsdown",
|
|
56
|
-
"build-schema": "pnpm build-cspell-schema",
|
|
57
|
-
"clean-build": "pnpm run clean && pnpm run build",
|
|
58
|
-
"coverage": "vitest run --coverage",
|
|
59
|
-
"test": "vitest run"
|
|
60
|
-
},
|
|
61
|
-
"repository": {
|
|
62
|
-
"type": "git",
|
|
63
|
-
"url": "https://github.com/streetsidesoftware/cspell.git",
|
|
64
|
-
"directory": "packages/cspell-types"
|
|
65
|
-
},
|
|
66
66
|
"files": [
|
|
67
67
|
"dist",
|
|
68
68
|
"ajv.config.js",
|
|
@@ -75,15 +75,18 @@
|
|
|
75
75
|
"!**/*.spec.*",
|
|
76
76
|
"!**/*.map"
|
|
77
77
|
],
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build": "pnpm build:tsc && pnpm build:tsdown && pnpm run build-schema",
|
|
80
|
+
"build:tsc": "tsc -p tsconfig.json",
|
|
81
|
+
"build:tsdown": "tsdown",
|
|
82
|
+
"build-schema": "pnpm build-cspell-schema",
|
|
83
|
+
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
84
|
+
"clean-build": "pnpm run clean && pnpm run build",
|
|
85
|
+
"coverage": "vitest run --coverage",
|
|
86
|
+
"test": "vitest run"
|
|
87
|
+
},
|
|
84
88
|
"engines": {
|
|
85
89
|
"node": ">=22.18.0"
|
|
86
90
|
},
|
|
87
|
-
"
|
|
88
|
-
"gitHead": "f37a244a54b686fc1ac11272d6019b9a059b062a"
|
|
91
|
+
"gitHead": "628768a6e62b792e628189b41e63e12e5d3d8fe3"
|
|
89
92
|
}
|