リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
PieceSet型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The pieces of one kind: the first key of each, in order, and how to fetch each. A key goes in the last piece whose first key is not after it.
インポート
import type { PieceSet } from "@johnmorrisdotca/jisho/words";
定義
type PieceSet = {
readonly starts: readonly string[];
readonly load: readonly (() => Promise<WordsPiece>)[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
starts | readonly string[] | |
load | readonly (() => Promise<WordsPiece>)[] |
例
import type { PieceSet } from "@johnmorrisdotca/jisho/words";
const set: PieceSet = { starts: [""], load: [async () => ({ rows: [] })] };
console.log(set.starts.length);1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。