ships.TypeAlias.FixedMountRepairResult - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / ships / FixedMountRepairResult

Type Alias: FixedMountRepairResult

FixedMountRepairResult = { slot: string; status: "repaired"; symbol: string; } | { slot: string; status: "unchanged"; symbol: string; } | { slot: string; status: "defaultUnavailable"; symbol?: string; } | { reason: "notFixedMount"; slot: string; status: "refused"; }

Defined in: src/ships/ship-loadout.ts:237

Result of ShipLoadout.repairFixedMount, discriminated by status.

Union Members

Type Literal

{ slot: string; status: "repaired"; symbol: string; }

slot

readonly slot: string

Slot key in the build's own spelling.

status

readonly status: "repaired"

The hull default was installed.

symbol

readonly symbol: string

Installed module symbol.


Type Literal

{ slot: string; status: "unchanged"; symbol: string; }

slot

readonly slot: string

Slot key in the build's own spelling.

status

readonly status: "unchanged"

The fixed mount already held a valid module.

symbol

readonly symbol: string

Current module symbol.


Type Literal

{ slot: string; status: "defaultUnavailable"; symbol?: string; }

slot

readonly slot: string

Slot key in the build's own spelling when one exists, otherwise the request.

status

readonly status: "defaultUnavailable"

No resolvable hull default exists for the fixed mount.

symbol?

readonly optional symbol?: string

Default module symbol, when the loadout names one but its stats are unavailable.


Type Literal

{ reason: "notFixedMount"; slot: string; status: "refused"; }

reason

readonly reason: "notFixedMount"

Stable refusal reason.

slot

readonly slot: string

Slot key in the build's own spelling when one exists, otherwise the request.

status

readonly status: "refused"

The requested mount is not fixed.

⚠️ **GitHub.com Fallback** ⚠️