Reference · The functions that read the tables
LookAlikeOptionstype
How far lookAlikes goes.
Import it
import type { LookAlikeOptions } from "@johnmorrisdotca/jisho";
Definition
type LookAlikeOptions = {
readonly atLeast?: number;
readonly max?: number;
};
Members
| Name | Type | Description |
|---|---|---|
atLeast (optional) | number | undefined | The lowest score to take, out of 100. The default is 70: below it, most kanji have a list rather than a warning. |
max (optional) | number | undefined | The most to give back. The default is 6. |
Examples
import type { LookAlikeOptions } from "@johnmorrisdotca/jisho";
const options: LookAlikeOptions = { atLeast: 80, max: 3 };
console.log(options);{ atLeast: 80, max: 3 }What it prints (run when this page was built)