listCustomFlags関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { listCustomFlags } from "@johnmorrisdotca/hata/custom";
定義
function listCustomFlags(options?: { group?: string; }): CustomFlagInfo[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
options (省略可) | { group?: string; } |
|
戻り値
CustomFlagInfo[]
The list: empty when nothing is registered.
例
import { listCustomFlags } from "@johnmorrisdotca/hata/custom";
console.log(listCustomFlags({ group: "Clubs" }).map((flag) => flag.id));[]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。