harper.js 0.16.0 → 0.18.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/harper.d.ts CHANGED
@@ -56,6 +56,12 @@ export declare interface Linter {
56
56
  isolateEnglish(text: string): Promise<string>;
57
57
  /** Get the linter's current configuration. */
58
58
  getLintConfig(): Promise<LintConfig>;
59
+ /** Get the default (unset) linter configuration as JSON.
60
+ * This method does not effect the caller's lint configuration, nor does it return the current one. */
61
+ getDefaultLintConfigAsJSON(): Promise<string>;
62
+ /** Get the default (unset) linter configuration.
63
+ * This method does not effect the caller's lint configuration, nor does it return the current one. */
64
+ getDefaultLintConfig(): Promise<LintConfig>;
59
65
  /** Set the linter's current configuration. */
60
66
  setLintConfig(config: LintConfig): Promise<void>;
61
67
  /** Get the linter's current configuration as JSON. */
@@ -87,6 +93,8 @@ export declare class LocalLinter implements Linter {
87
93
  isLikelyEnglish(text: string): Promise<boolean>;
88
94
  isolateEnglish(text: string): Promise<string>;
89
95
  getLintConfig(): Promise<LintConfig>;
96
+ getDefaultLintConfigAsJSON(): Promise<string>;
97
+ getDefaultLintConfig(): Promise<LintConfig>;
90
98
  setLintConfig(config: LintConfig): Promise<void>;
91
99
  getLintConfigAsJSON(): Promise<string>;
92
100
  setLintConfigWithJSON(config: string): Promise<void>;
@@ -167,6 +175,8 @@ export declare class WorkerLinter implements Linter {
167
175
  toTitleCase(text: string): Promise<string>;
168
176
  getLintDescriptionsAsJSON(): Promise<string>;
169
177
  getLintDescriptions(): Promise<Record<string, string>>;
178
+ getDefaultLintConfigAsJSON(): Promise<string>;
179
+ getDefaultLintConfig(): Promise<LintConfig>;
170
180
  /** Run a procedure on the remote worker. */
171
181
  private rpc;
172
182
  private submitRemainingRequests;