MilitaryRestriction型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Why a flag is withheld by default, and who it is for, in both languages: reason, reasonJa, allowedFor and allowedForJa. No law restricts it.
インポート
import type { MilitaryRestriction } from "@johnmorrisdotca/hata/military";
定義
type MilitaryRestriction = DrawnRestriction;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
reason | string | |
reasonJa | string | |
allowedFor | string | |
allowedForJa | string |
例
import { type MilitaryRestriction } from "@johnmorrisdotca/hata/military";
const why: MilitaryRestriction["allowedFor"] = "education and history";
console.log(why);education and history出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。