ships.Function.inspectSlef - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships / inspectSlef
inspectSlef(
input):SlefInspection
Defined in: src/ships/slef.ts:476
Inspect a potentially mixed SLEF payload without silently losing malformed entries.
unknown
A JSON string, SLEF envelope/array, or bare Loadout event.
Every valid entry and an indexed diagnostic for every rejected entry.
If a string is not valid JSON.
import { inspectSlef } from '@elite-dangerous-almanac/core/ships/slef';
const result = inspectSlef([{ Ship: 'sidewinder', Modules: [{ Slot: 'PowerPlant' }] }]);
result.diagnostics[0]?.path; // -> 'entries[0].Modules[0].Item'