apisurf
Version:
Analyze API surface changes between npm package versions to catch breaking changes
11 lines (10 loc) • 410 B
TypeScript
import { ApiSurface } from '../types/ApiSurface.js';
import { PackageDiff } from '../types/PackageDiff.js';
/**
* Compares two API surfaces and identifies breaking and non-breaking changes.
* Analyzes exports, types, and other public API elements between versions.
*/
export declare function compareApiSurfaces(base: ApiSurface, head: ApiSurface, pkg: {
name: string;
path: string;
}): PackageDiff;