Appearance
@loontail/minecraft-kit v0.8.14 / LibraryRule
Type alias: LibraryRule
ts
type LibraryRule: {
action: "allow" | "disallow";
features: Readonly<Record<string, boolean>>;
os: {
arch: string;
name: string;
version: string;
};
};Rule entry used by libraries and modern arguments.
Example
ts
import type { LibraryRule } from "@loontail/minecraft-kit";
const allowOnLinux: LibraryRule = { action: "allow", os: { name: "linux" } };
const denyOnArm: LibraryRule = { action: "disallow", os: { arch: "aarch64" } };Type declaration
| Member | Type |
|---|---|
action | "allow" | "disallow" |
features | Readonly<Record<string, boolean>> |
os | { |
arch: string; | |
name: string; | |
version: string; | |
| } | |
os.arch | string |
os.name | string |
os.version | string |