FuriganaPart型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One piece of a written word: its text, and, for a piece of kanji, the kana that read it. A piece with no reading is kana that
needs none.
インポート
import type { FuriganaPart } from "@johnmorrisdotca/jisho/examples";
ほかのエクスポート元: @johnmorrisdotca/jisho/words
定義
type FuriganaPart = {
readonly text: string;
readonly reading?: string;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
text | string | The text of the piece, as written. |
reading (省略可) | string | undefined | The hiragana that read it, when the piece is kanji. |
例
import type { FuriganaPart } from "@johnmorrisdotca/jisho/words";
const part: FuriganaPart = { text: "食", reading: "た" };
console.log(part.reading);た出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。