import "./metadata-types.js"; //#region src/lib/source.d.ts /** * A value that is either a single item or an array of items. */ export type OneOrMany = T | T[]; /** * A unified record returned by every metadata source. * * @template D The shape of the primary data extracted from the source. * @template E The shape of any additional computed/derived fields. */ export type SourceRecord = Record, E extends Record = Record> = { /** Primary structured data from this source. */ data: D; /** Additional computed or derived fields not present in the raw source. */ extra?: E; /** The file path or URL from which the data was derived. */ source: string; }; //#endregion