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

1.0.2 • Public • Published

Installation

npm install --save @types/autokanji

Summary

This package contains type definitions for autokanji (https://github.com/TylerMartinez/AutoKanji#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/autokanji.

index.d.ts

/**
 * Javascript library that provides autocomplete suggestions for kanjibased on a kana input.
 * The kana to kanji translations are based off the JMDict Dictionary Project.
 */

/**
 *  Returns an array of matches in descending leniency
 */
export function find(input: string): string[];

/**
 * Changes the level of leniency we check when determining possible matches.
 * Setting this to 1 makes sure all characters in input must match the kanji translation
 * and 2 makes sure every character but the last one matches and so on. The default is 2.
 */
export function setLenience(level: number): void;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/autokanji

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.79 kB

Total Files

5

Last publish

Collaborators

  • types