apisurf
Version:
Analyze API surface changes between npm package versions to catch breaking changes
7 lines (6 loc) • 396 B
TypeScript
import { ApiSurface } from '../types/ApiSurface.js';
/**
* Parses source code to extract the public API surface including exports and type information.
* Supports both ES6/TypeScript modules and CommonJS modules.
*/
export declare function parseApiSurface(sourceContent: string, packageName: string, version: string, modulePath?: string, gitBranch?: string, packagePath?: string): ApiSurface;