Reference · Flag source and framing metadata
OtherFlagtype
The other flag of a day, in the role that was not asked for.
Import it
import type { OtherFlag } from "@johnmorrisdotca/hata/manifest";
Definition
interface OtherFlag {
role: FlagRole;
id: string;
name: string;
nameJa: string;
note: RoleNote | null;
}
Members
| Name | Type | Description |
|---|---|---|
role | FlagRole | The role it has: |
id | string | Its |
name | string | Its name in English. |
nameJa | string | The same in Japanese. |
note | RoleNote | null | The reason one was the law's and the other the practice, as its |
Examples
import { variantOn, type OtherFlag } from "@johnmorrisdotca/hata/manifest";
const other: OtherFlag | null = variantOn("AU", "1930")?.other ?? null;
console.log(other?.id, other?.role); // "australian-national-flag" "in-use": the flag flown while the Union Flag was the legal oneaustralian-national-flag in-useWhat it prints (run when this page was built)