API reference: @salmonui/mcp
ExportsMapclass
import { ExportsMap } from '@salmonui/mcp';class ExportsMap {
readonly entries: Map<string, IndexEntry>;
readonly packages: Map<string, IndexPackage>;
readonly families: Map<string, {
pkg: IndexPackage;
family: IndexFamily;
}>;
readonly familyOf: Map<string, {
pkg: IndexPackage;
family: IndexFamily;
}>;
readonly whereExported: Map<string, string[]>;
constructor(index: McpIndex);
static packageName(specifier: string): string;
exportersOf(name: string): string[];
closest(specifier: string, max?: number): string[];
}
Lookups over the index used by the checker and the tools.
| Name | Signature | Description |
|---|---|---|
entries | readonly entries: Map<string, IndexEntry>; | |
packages | readonly packages: Map<string, IndexPackage>; | |
families | readonly families: Map<string, {
pkg: IndexPackage;
family: IndexFamily;
}>; | |
familyOf | readonly familyOf: Map<string, {
pkg: IndexPackage;
family: IndexFamily;
}>; | Family of every family entry and subpath. |
whereExported | readonly whereExported: Map<string, string[]>; | |
exportersOf | exportersOf(name: string): string[]; | Entries exporting |
closest | closest(specifier: string, max?: number): string[]; | Closest existing specifiers by edit distance (at most |