Reference · The functions that read the tables
GradeTabletype
The shape of GRADES, from @johnmorrisdotca/jisho/grades.
Import it
import type { GradeTable } from "@johnmorrisdotca/jisho";
Definition
type GradeTable = {
readonly source: string;
readonly release: string;
readonly grades: Readonly<Partial<Record<string, string>>>;
};
Members
| Name | Type | Description |
|---|---|---|
source | string | Where it was made from. |
release | string | The date of the KANJIDIC2 it was made from. |
grades | Readonly<Partial<Record<string, string>>> | Each grade's kanji, written together. |
Examples
import type { GradeTable } from "@johnmorrisdotca/jisho";
const table: GradeTable = { source: "KANJIDIC2", release: "2026-10-31", grades: { "1": "一右" } };
console.log(table.source);KANJIDIC2What it prints (run when this page was built)