Reference · Marking, scores and game rules
PackedSayingstype
The proverb and four-character compound lists as they are stored: one row an entry, the two flags as 0 or 1.
Import it
import type { PackedSayings } from "@johnmorrisdotca/kotoba";
Definition
type PackedSayings = {
readonly release: string;
readonly sayings: readonly (readonly [
string,
string,
readonly string[],
number,
number
])[];
};
Members
| Name | Type | Description |
|---|---|---|
release | string | The JMdict release it was made from. |
sayings | readonly (readonly [string, string, readonly string[], number, number])[] | Written form, reading, meanings, then elementary and common. |
Examples
import type { PackedSayings } from "@johnmorrisdotca/kotoba";
const packed: PackedSayings = { release: "2026-11-04", sayings: [["七転八起", "しちてんはっき", ["falling seven times, getting up eight"], 1, 0]] };
console.log(packed.release);2026-11-04What it prints (run when this page was built)