spellchecker-wasm/lib/nodejs/SpellcheckerWasm.d.ts
Justin Wilaby 21a2791997
[WIP] Resolves #5 - Browser Compatibility (#6)
Resolves #5 - Browser Compatibility
2020-01-02 12:11:14 -08:00

17 lines
699 B
TypeScript

import { ResultsHandler, SpellcheckerBase, SymSpellOptions } from '../SpellCheckerBase';
/**
* This class provides the wrapper for the spellcheck-wasm.wasm functionality.
*/
export declare class SpellcheckerWasm extends SpellcheckerBase {
constructor(resultHandler?: ResultsHandler);
/**
* Prepares the spellcheck wasm for use.
*
* @param wasmLocation
* @param dictionaryLocation
* @param bigramLocation
* @param options
*/
prepareSpellchecker(wasmLocation: string | Response, dictionaryLocation: string | Response, bigramLocation?: string | Response, options?: SymSpellOptions): Promise<void>;
protected encodeString(str: string): Uint8Array;
}