Reference · The whole entry of a word: every sense, and everything JMdict says of it
EntryReadingtype
A reading of an entry, with its marks and the written forms it is limited to.
Import it
import type { EntryReading } from "@johnmorrisdotca/jisho/entries";
Definition
type EntryReading = {
readonly text: string;
readonly marks: readonly string[];
readonly onlyForms: readonly string[];
readonly noKanji: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
text | string | |
marks | readonly string[] | The marks, such as |
onlyForms | readonly string[] | The written forms this reading goes with; none when it goes with all of them. |
noKanji | boolean | Whether it is a reading of no kanji. |
Examples
import type { EntryReading } from "@johnmorrisdotca/jisho/entries";
const reading: EntryReading = { text: "かみ", marks: [], onlyForms: [], noKanji: false };
console.log(reading.text);かみWhat it prints (run when this page was built)