Reference · Flag source and framing metadata
FlagTagtype
One thing that is on a flag, and where the claim comes from.
Import it
import type { FlagTag } from "@johnmorrisdotca/hata/manifest";
Also exported from: @johnmorrisdotca/hata/search
Definition
interface FlagTag {
tag: TagName;
source: TagSource;
}
Members
| Name | Type | Description |
|---|---|---|
tag | TagName | The tag, of the closed list: see |
source | TagSource | Where it comes from: see |
Examples
import { tagsOf, type FlagTag } from "@johnmorrisdotca/hata/search";
const germany: readonly FlagTag[] = tagsOf("DE");
console.log(germany); // [{ tag: "plain", source: "computed" }, { tag: "stripes-horizontal", source: "computed" }][
{ tag: 'plain', source: 'computed' },
{ tag: 'stripes-horizontal', source: 'computed' }
]What it prints (run when this page was built)