リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
IndexManifest型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { IndexManifest } from "@johnmorrisdotca/jisho/words";
定義
type IndexManifest = {
readonly source: string;
readonly release: string;
readonly meanings: PieceSet;
readonly kanji: PieceSet;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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. |
例
import type { IndexManifest } from "@johnmorrisdotca/jisho/words";
const read = (manifest: IndexManifest) => manifest.meanings.starts.length;
console.log(typeof read);function出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。