@jsdocs-io/extractor
Version:
The API extractor for npm packages powering jsdocs.io
12 lines (11 loc) • 428 B
JavaScript
import { extractDeclarations } from "./extract-declarations.js";
/** `getPackageDeclarations` extracts the declarations exported from the given project representing a package. */
export async function getPackageDeclarations({ pkgName, project, indexFile, maxDepth, }) {
return await extractDeclarations({
containerName: "",
container: indexFile,
maxDepth,
project,
pkgName,
});
}