Reference · Look words up by reading, written form, English meaning, kanji or romaji
PieceSettype
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 it
import type { PieceSet } from "@johnmorrisdotca/jisho/words";
Definition
type PieceSet = {
readonly starts: readonly string[];
readonly load: readonly (() => Promise<WordsPiece>)[];
};
Members
| Name | Type | Description |
|---|---|---|
starts | readonly string[] | |
load | readonly (() => Promise<WordsPiece>)[] |
Examples
import type { PieceSet } from "@johnmorrisdotca/jisho/words";
const set: PieceSet = { starts: [""], load: [async () => ({ rows: [] })] };
console.log(set.starts.length);1What it prints (run when this page was built)