Reference · Samurai battle banners
SamuraiIdtype
The id of a banner, written exactly as this package writes it: samurai: and a lower-case slug. No country or region code contains a
colon, so none of these can be taken for one.
Import it
import type { SamuraiId } from "@johnmorrisdotca/hata/samurai";
Definition
type SamuraiId = (typeof SAMURAI)[number]["id"];
Examples
import { type SamuraiId } from "@johnmorrisdotca/hata/samurai";
const nobori: SamuraiId = "samurai:sanada-rokumonsen";
console.log(nobori);samurai:sanada-rokumonsenWhat it prints (run when this page was built)