BushuEventDetail型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a picker tells of itself, in bushu-change and bushu-pick events and to the callbacks.
インポート
import type { BushuEventDetail } from "@johnmorrisdotca/bushu/picker";
定義
type BushuEventDetail = {
chosen: string[];
matches: number;
kanji: string | null;
parts: string[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
chosen | string[] | The parts chosen, as RADKFILE's keys, in the grid's order. |
matches | number | How many kanji hold all of them. |
kanji | string | null | The kanji whose card is open, or null. |
parts | string[] | The parts of that kanji, as RADKFILE's keys, fewest strokes first. |
例
import type { BushuEventDetail } from "@johnmorrisdotca/bushu/picker";
const value: BushuEventDetail = {chosen:["汁"],matches:2,kanji:null,parts:[]};
console.log(value);{ chosen: [ '汁' ], matches: 2, kanji: null, parts: [] }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。