UNPKG

apisurf

Version:

Analyze API surface changes between npm package versions to catch breaking changes

10 lines (9 loc) 411 B
export interface SemverViolation { hasViolation: boolean; actualBump?: 'major' | 'minor' | 'patch' | 'prerelease'; requiredBump?: 'major' | 'minor' | 'patch'; } /** * Detects if there's a semver violation between the required bump and actual bump */ export declare function detectSemverViolation(fromVersion: string, toVersion: string, requiredBump: 'major' | 'minor' | 'patch'): SemverViolation;