Skip to content

@loontail/minecraft-kit v0.8.14 / ArgumentEntry

Type alias: ArgumentEntry

ts
type ArgumentEntry: string | {
  rules: readonly LibraryRule[];
  value: string | readonly string[];
};

A single argument entry: bare string or rule-gated value.

Example

ts
import type { ArgumentEntry } from "@loontail/minecraft-kit";

const plain: ArgumentEntry = "--username";
const gated: ArgumentEntry = {
  rules: [{ action: "allow", features: { is_demo_user: true } }],
  value: "--demo",
};

Source

src/types/minecraft.ts:273

MIT License