MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / defaultLeanMap

Function defaultLeanMap

lib/mcp/utils.ts:77–80  ·  view source on GitHub ↗
(item: T)

Source from the content-addressed store, hash-verified

75};
76
77const defaultLeanMap = <T extends {id: string; name?: string}>(item: T): LeanShape => ({
78 id: item.id,
79 name: item.name ?? '',
80});
81
82/**
83 * Caller-requested lean mode (`forceLean: true`) returns items mapped through

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected