Reference · Example sentences of a word, with furigana and their credit
FuriganaParttype
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 it
import type { FuriganaPart } from "@johnmorrisdotca/jisho/examples";
Also exported from: @johnmorrisdotca/jisho/words
Definition
type FuriganaPart = {
readonly text: string;
readonly reading?: string;
};
Members
| Name | Type | Description |
|---|---|---|
text | string | The text of the piece, as written. |
reading (optional) | string | undefined | The hiragana that read it, when the piece is kanji. |
Examples
import type { FuriganaPart } from "@johnmorrisdotca/jisho/words";
const part: FuriganaPart = { text: "食", reading: "た" };
console.log(part.reading);たWhat it prints (run when this page was built)