@cspell/cspell-types 10.3.2 → 10.3.4-alpha.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/README.md +3 -3
- package/dist/Parser/index.d.mts +1 -1
- package/dist/Parser/index.d.ts +1 -1
- package/dist/{index-DDztg9U8.d.ts → index-ClTvqr3-.d.mts} +13 -2
- package/dist/{index-DDztg9U8.d.mts → index-ClTvqr3-.d.ts} +13 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,9 +10,9 @@ This package contains no dependencies to avoid any security issues.
|
|
|
10
10
|
|
|
11
11
|
If our spell checkers save you time, please consider supporting their development.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Please show your support through one of the following sites:
|
|
14
|
+
|
|
15
|
+
[](https://github.com/sponsors/streetsidesoftware) [](https://www.paypal.com/donate/?hosted_button_id=26LNBP2Q6MKCY) [](https://opencollective.com/cspell) [](https://streetsidesoftware.com/sponsor/)
|
|
16
16
|
|
|
17
17
|
<!--- @@inject-end: ../../static/sponsor.md --->
|
|
18
18
|
|
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-ClTvqr3-.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-ClTvqr3-.js";
|
|
2
2
|
export type { DelegateInfo, DocumentParser, MappedText, ParseResult, ParsedTag, ParsedTags, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap, TextDocument, TextDocumentFragment };
|
|
@@ -112,6 +112,11 @@ type ParserName = string;
|
|
|
112
112
|
interface Parser {
|
|
113
113
|
/** Name of parser */
|
|
114
114
|
readonly name: ParserName;
|
|
115
|
+
/**
|
|
116
|
+
* Parse Method
|
|
117
|
+
* @param document - the text document to parse
|
|
118
|
+
*/
|
|
119
|
+
parseDocument?: ParseDocument;
|
|
115
120
|
/**
|
|
116
121
|
* Parse Method
|
|
117
122
|
* @param content - full content of the file
|
|
@@ -128,6 +133,12 @@ interface DocumentParser {
|
|
|
128
133
|
* @param document - the text document to parse
|
|
129
134
|
*/
|
|
130
135
|
parseDocument: ParseDocument;
|
|
136
|
+
/**
|
|
137
|
+
* Parse Method
|
|
138
|
+
* @param content - full content of the file
|
|
139
|
+
* @param filename - filename
|
|
140
|
+
*/
|
|
141
|
+
parse?: (content: string, filename: string) => ParseResult;
|
|
131
142
|
}
|
|
132
143
|
interface ParseResult {
|
|
133
144
|
/**
|
|
@@ -161,7 +172,7 @@ interface ParsedText extends Readonly<Mapped> {
|
|
|
161
172
|
/**
|
|
162
173
|
* The tags associated with this segment of text.
|
|
163
174
|
*/
|
|
164
|
-
readonly tags?: ParsedTags | undefined;
|
|
175
|
+
readonly tags?: Readonly<ParsedTags> | undefined;
|
|
165
176
|
/**
|
|
166
177
|
* Used to delegate parsing the contents of `text` to another parser.
|
|
167
178
|
*
|
|
@@ -241,4 +252,4 @@ interface TransformedText extends Mapped {
|
|
|
241
252
|
}
|
|
242
253
|
//#endregion
|
|
243
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 };
|
|
244
|
-
//# sourceMappingURL=index-
|
|
255
|
+
//# sourceMappingURL=index-ClTvqr3-.d.mts.map
|
|
@@ -112,6 +112,11 @@ type ParserName = string;
|
|
|
112
112
|
interface Parser {
|
|
113
113
|
/** Name of parser */
|
|
114
114
|
readonly name: ParserName;
|
|
115
|
+
/**
|
|
116
|
+
* Parse Method
|
|
117
|
+
* @param document - the text document to parse
|
|
118
|
+
*/
|
|
119
|
+
parseDocument?: ParseDocument;
|
|
115
120
|
/**
|
|
116
121
|
* Parse Method
|
|
117
122
|
* @param content - full content of the file
|
|
@@ -128,6 +133,12 @@ interface DocumentParser {
|
|
|
128
133
|
* @param document - the text document to parse
|
|
129
134
|
*/
|
|
130
135
|
parseDocument: ParseDocument;
|
|
136
|
+
/**
|
|
137
|
+
* Parse Method
|
|
138
|
+
* @param content - full content of the file
|
|
139
|
+
* @param filename - filename
|
|
140
|
+
*/
|
|
141
|
+
parse?: (content: string, filename: string) => ParseResult;
|
|
131
142
|
}
|
|
132
143
|
interface ParseResult {
|
|
133
144
|
/**
|
|
@@ -161,7 +172,7 @@ interface ParsedText extends Readonly<Mapped> {
|
|
|
161
172
|
/**
|
|
162
173
|
* The tags associated with this segment of text.
|
|
163
174
|
*/
|
|
164
|
-
readonly tags?: ParsedTags | undefined;
|
|
175
|
+
readonly tags?: Readonly<ParsedTags> | undefined;
|
|
165
176
|
/**
|
|
166
177
|
* Used to delegate parsing the contents of `text` to another parser.
|
|
167
178
|
*
|
|
@@ -241,4 +252,4 @@ interface TransformedText extends Mapped {
|
|
|
241
252
|
}
|
|
242
253
|
//#endregion
|
|
243
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 };
|
|
244
|
-
//# sourceMappingURL=index-
|
|
255
|
+
//# sourceMappingURL=index-ClTvqr3-.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-ClTvqr3-.mjs";
|
|
2
2
|
//#region src/cspell-vfs.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Binary data for CSpellVFS file.
|
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-ClTvqr3-.js";
|
|
2
2
|
//#region src/cspell-vfs.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Binary data for CSpellVFS file.
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "10.3.
|
|
7
|
+
"version": "10.3.4-alpha.0",
|
|
8
8
|
"description": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"node": ">=22.18.0"
|
|
86
86
|
},
|
|
87
87
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "f52ee7e2f24189eaf8fb5139c0b029c8cb80fc57"
|
|
89
89
|
}
|