Skip to content
e6956b3 Address review
1 neutral , and 5 successful checks

Artifact Comparison

Neutral

ran Oct 15, 2018 in less than a minute

e6956b3 by @nitsakh

spellcheck-async

Changes Detected

Looks like the electron.d.ts file changed.

Index: electron.d.ts
===================================================================
--- electron.d.ts	
+++ electron.d.ts	
@@ -6408,12 +6408,14 @@
      */
     setLayoutZoomLevelLimits(minimumLevel: number, maximumLevel: number): void;
     /**
      * Sets a provider for spell checking in input fields and text areas. The provider
-     * must be an object that has a spellCheck method that returns whether the word
-     * passed is correctly spelled. An example of using node-spellchecker as provider:
+     * must be an object that has a spellCheck method that accepts an array of
+     * individual words for spellchecking. The spellCheck function runs asynchronously
+     * and calls the callback function with an array of misspelt words when complete.
+     * An example of using node-spellchecker as provider:
      */
-    setSpellCheckProvider(language: string, autoCorrectWord: boolean, provider: Provider): void;
+    setSpellCheckProvider(language: string, provider: Provider): void;
     /**
      * Sets the maximum and minimum pinch-to-zoom level.
      */
     setVisualZoomLevelLimits(minimumLevel: number, maximumLevel: number): void;
@@ -8594,11 +8596,11 @@
   }
 
   interface Provider {
     /**
-     * Returns Boolean.
+     * .
      */
-    spellCheck: (text: string) => void;
+    spellCheck: (words: string[], callback: (misspeltWords: string[]) => void) => void;
   }
 
   interface ReadBookmark {
     title: string;
You can’t perform that action at this time.