Appearance
@loontail/minecraft-kit / DetectSystemInput
Type Alias: DetectSystemInput
ts
type DetectSystemInput = {
arch?: NodeJS.Architecture;
osVersion?: string;
platform?: NodeJS.Platform;
};Defined in: src/core/system.ts:18
Inputs allowing the host system to be derived from current Node values or overrides.
Example
ts
import { detectSystem, type DetectSystemInput } from "@loontail/minecraft-kit";
// Force the runtime resolver to treat the host as macOS ARM64 regardless of process.platform:
const input: DetectSystemInput = { platform: "darwin", arch: "arm64" };
const system = detectSystem(input);Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
arch? | readonly | NodeJS.Architecture | src/core/system.ts:20 |
osVersion? | readonly | string | src/core/system.ts:21 |
platform? | readonly | NodeJS.Platform | src/core/system.ts:19 |