Reference · The functions that read the tables
SchoolGradetype
A school grade as KANJIDIC2 numbers it: 1 to 6 are elementary school, 8 is the rest of the jōyō kanji, taught in secondary school, 9 is the kanji allowed in names (jinmeiyō), 10 is a jinmeiyō variant of a jōyō kanji. There is no 7.
Import it
import type { SchoolGrade } from "@johnmorrisdotca/jisho";
Definition
type SchoolGrade = 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10;
Examples
import type { SchoolGrade } from "@johnmorrisdotca/jisho";
const grade: SchoolGrade = 8;
console.log(grade);8What it prints (run when this page was built)