リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
LoadWordsOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How loadWords is asked.
インポート
import type { LoadWordsOptions } from "@johnmorrisdotca/jisho/words";
定義
type LoadWordsOptions = WordsOptions & {
readonly previous?: Words;
readonly romaji?: boolean;
readonly inflected?: boolean;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
mode (省略可) | WordsMode | undefined |
|
block (省略可) | readonly string[] | undefined | Readings and written forms to leave out, on top of the mode. A reading that several words share names all of them. Applied only when given. |
allow (省略可) | readonly string[] | undefined | Readings and written forms to keep and nothing else, on top of the mode and the block list. Applied only when given; an empty list keeps none. |
previous (省略可) | Words | undefined | Words loaded before, in the same mode: what they hold is kept, and pieces they came from are not fetched again. |
romaji (省略可) | boolean | undefined | Read a text of Latin letters as romaji and load the kana it could be ( |
inflected (省略可) | boolean | undefined | Also load the dictionary forms a text could be conjugated from (食べなかった loads 食べる), for |
例
import type { LoadWordsOptions } from "@johnmorrisdotca/jisho/words";
const options: LoadWordsOptions = { mode: "safe" };
console.log(options.mode);safe出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。