PackedLookAlikes型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The shape of LOOK_ALIKE, from @johnmorrisdotca/jisho/look-alike.
インポート
import type { PackedLookAlikes } from "@johnmorrisdotca/jisho";
定義
type PackedLookAlikes = {
readonly source: string;
readonly pairs: readonly (readonly [
string,
number,
number
] | readonly [
string,
number,
number,
number
])[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
source | string | Whose scores they are. |
pairs | readonly (readonly [string, number, number] | readonly [string, number, number, number])[] | The two kanji written together, then the score by strokes and the score by parts, each out of 100, 0 where not scored, and the score by shape where there is one (the pairs the first two did not hold). |
例
import type { PackedLookAlikes } from "@johnmorrisdotca/jisho";
const packed: PackedLookAlikes = { source: "a study", pairs: [["士土", 100, 67], ["己巳", 0, 0, 84]] };
console.log(packed.pairs.length);2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。