@types/typo-js
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/typo-js

Weekly Downloads

9,374

Version

1.2.2

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • types