@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.
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Dictionary.js.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
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadDictionary = loadDictionary;
4
+ function loadDictionary() { }
5
+ //# sourceMappingURL=DynamicDictionaryDefinition.js.map
package/dist/IO.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export interface FileResource {
2
+ url: URL;
3
+ getText(): string;
4
+ getBytes(): Uint8Array;
5
+ }
6
+ export interface VirtualFileSystem {
7
+ readFile(url: URL): Promise<FileResource>;
8
+ }
9
+ //# sourceMappingURL=IO.d.ts.map
package/dist/IO.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IO.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "8.16.0",
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": "41cd50f9ba34033b6da32408855d7fc3b888c5e0"
91
+ "gitHead": "773bb6e701ff0b7fbeb30e4621119bb4315415ad"
92
92
  }