// THE X TRENDING LIBRARY MARKER, as plain JavaScript (lane x-trending, review // 2): the one predicate "is this channel config a library's?", importable by // umtool's .mjs readers of the corpus as well as by common's TypeScript // (lib/xTrending/config.ts re-exports it). A LEAF: no imports. // // THE MARKER ALONE DECIDES: `xTrending` is an object. Not the kind, not the // platform — a config edit that changed either must not switch a library's // privacy off while its posts stay. /** * @param {{ xTrending?: unknown } | null | undefined} config * @returns {boolean} */ export function isXTrendingChannel(config) { const m = config?.xTrending; return Boolean(m) && typeof m === "object" && !Array.isArray(m); }