Skip to content

@loontail/minecraft-kit v0.8.14 / SpawnOptions

Type alias: SpawnOptions

ts
type SpawnOptions: {
  cwd: string;
  env: Readonly<Record<string, string>>;
};

Options accepted by the spawner.

Example

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

const options: SpawnOptions = {
  cwd: target.directory,
  env: { MINECRAFT_LAUNCHER: "my-launcher" },
};

Type declaration

MemberType
cwdstring
envReadonly<Record<string, string>>

Source

src/types/spawner.ts:58

MIT License