Skip to content

@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

MemberType
action"allow" | "disallow"
featuresReadonly<Record<string, boolean>>
os{
arch: string;
name: string;
version: string;
}
os.archstring
os.namestring
os.versionstring

Source

src/types/minecraft.ts:237

MIT License