Installation
npm install --save @types/typo-js
Summary
This package contains type definitions for typo-js (https://github.com/cfinke/Typo.js#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/typo-js.
index.d.ts
interface TypoSettings {
dictionaryPath?: string;
asyncLoad?: boolean;
loadedCallback?: (dict: Typo) => void;
}
declare class Typo {
constructor(dictionary?: string, affData?: string | null, wordsData?: string | null, settings?: TypoSettings);
loaded: boolean;
check: (word: string) => boolean;
suggest: (word: string, limit?: number) => string[];
}
export = Typo;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Will Hawker.