Reference · Look words up by reading, written form, English meaning, kanji or romaji
IndexManifesttype
Where the pieces of the indexes are that find words by meaning and by kanji. Each key's line says which readings to fetch. The indexes of what safe mode keeps and the indexes of what it leaves out are two manifests of this shape.
Import it
import type { IndexManifest } from "@johnmorrisdotca/jisho/words";
Definition
type IndexManifest = {
readonly source: string;
readonly release: string;
readonly meanings: PieceSet;
readonly kanji: PieceSet;
};
Members
| Name | Type | Description |
|---|---|---|
source | string | |
release | string | |
meanings | PieceSet | English terms, each with the readings of the words that have it. |
kanji | PieceSet | Kanji, each with the readings of the words written with it. |
Examples
import type { IndexManifest } from "@johnmorrisdotca/jisho/words";
const read = (manifest: IndexManifest) => manifest.meanings.starts.length;
console.log(typeof read);functionWhat it prints (run when this page was built)