@cspell/cspell-types 8.16.0 → 8.16.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/Dictionary.d.ts +16 -0
- package/dist/Dictionary.js +3 -0
- package/dist/DynamicDictionaryDefinition.d.ts +20 -0
- package/dist/DynamicDictionaryDefinition.js +5 -0
- package/dist/IO.d.ts +9 -0
- package/dist/IO.js +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface DictionaryInfo {
|
|
2
|
+
/** The name of the dictionary */
|
|
3
|
+
readonly name: string;
|
|
4
|
+
/** Description of the dictionary to display. */
|
|
5
|
+
readonly description?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface HasOptions {
|
|
8
|
+
ignoreCase?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface FindResult {
|
|
11
|
+
}
|
|
12
|
+
export interface Dictionary extends DictionaryInfo {
|
|
13
|
+
has(word: string, options?: HasOptions): boolean;
|
|
14
|
+
find(word: string, options?: HasOptions): FindResult | undefined;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Dictionary.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface DictionaryContext {
|
|
2
|
+
/** The file to spell check. */
|
|
3
|
+
file: URL;
|
|
4
|
+
/** The working directory. */
|
|
5
|
+
cwd: URL;
|
|
6
|
+
}
|
|
7
|
+
export interface DynamicDictionary {
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DynamicDictionaryContext {
|
|
11
|
+
/**
|
|
12
|
+
* The url to the config file that defines the dictionary function.
|
|
13
|
+
*/
|
|
14
|
+
configUrl: URL;
|
|
15
|
+
/** The working directory. */
|
|
16
|
+
cwd: URL;
|
|
17
|
+
readFile(url: URL): Promise<Uint8Array>;
|
|
18
|
+
}
|
|
19
|
+
export declare function loadDictionary(): void;
|
|
20
|
+
//# sourceMappingURL=DynamicDictionaryDefinition.d.ts.map
|
package/dist/IO.d.ts
ADDED
package/dist/IO.js
ADDED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "8.16.
|
|
7
|
+
"version": "8.16.1",
|
|
8
8
|
"description": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"node": ">=18"
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "773bb6e701ff0b7fbeb30e4621119bb4315415ad"
|
|
92
92
|
}
|