Reference · The whole entry of a word: every sense, and everything JMdict says of it
Referencetype
A cross-reference in its parts, from referenceOf.
Import it
import type { Reference } from "@johnmorrisdotca/jisho/entries";
Definition
type Reference = {
readonly written: string;
readonly reading: string | undefined;
readonly sense: number | undefined;
};
Members
| Name | Type | Description |
|---|---|---|
written | string | The word to look up. |
reading | string | undefined | Its reading, if the reference says one. |
sense | number | undefined | The number of the sense, counting from 1, if the reference says one. |
Examples
import type { Reference } from "@johnmorrisdotca/jisho/entries";
const reference: Reference = { written: "神", reading: undefined, sense: 1 };
console.log(reference.written);神What it prints (run when this page was built)