Reference · The functions that read the tables
JlptTabletype
The shape of JLPT, from @johnmorrisdotca/jisho/jlpt.
Import it
import type { JlptTable } from "@johnmorrisdotca/jisho";
Definition
type JlptTable = {
readonly source: string;
readonly levels: Readonly<Partial<Record<JlptLevel, string>>>;
};
Members
| Name | Type | Description |
|---|---|---|
source | string | Whose lists they are. |
levels | Readonly<Partial<Record<JlptLevel, string>>> | Each level's kanji, written together, in the order of the list. |
Examples
import type { JlptTable } from "@johnmorrisdotca/jisho";
const table: JlptTable = { source: "a list", levels: { N5: "日一" } };
console.log(table.source);a listWhat it prints (run when this page was built)