Reference · Draw a bracket, a table or a road to the final
JudoCategorytype
A judo category: the sex and the weight class.
Import it
import type { JudoCategory } from "@johnmorrisdotca/taisen-brackets";
Definition
interface JudoCategory {
sex: "men" | "women";
weight: string;
}
Members
| Name | Type | Description |
|---|---|---|
sex | "men" | "women" | |
weight | string |
|
Examples
import { judoCategoryLabel, type JudoCategory } from "@johnmorrisdotca/taisen-brackets";
const category: JudoCategory = { sex: "women", weight: "-48" };
console.log(judoCategoryLabel(category, "es"));Mujeres -48 kgWhat it prints (run when this page was built)