Reference · Flags a page registers itself
listCustomFlagsfunction
The flags registered and on, in the order they were added, each as { id, name, group, aspect, source }; only one group's with group.
Import it
import { listCustomFlags } from "@johnmorrisdotca/hata/custom";
Definition
function listCustomFlags(options?: { group?: string; }): CustomFlagInfo[]
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | { group?: string; } |
|
Returns
CustomFlagInfo[]
The list: empty when nothing is registered.
Examples
import { listCustomFlags } from "@johnmorrisdotca/hata/custom";
console.log(listCustomFlags({ group: "Clubs" }).map((flag) => flag.id));[]What it prints (run when this page was built)