UNPKG

@thecodingwhale/cv-processor

Version:

CV Processor to extract structured data from PDF resumes using TypeScript

29 lines (28 loc) 842 B
/** * Interface for emptiness percentage results */ export interface EmptinessPercentageResult { percentage: number; totalFields: number; nonEmptyFields: number; expectedTotalFields?: number; expectedPercentage?: number; } /** * Calculates the percentage of non-empty fields in the CV data */ export declare class EmptinessPercentageCalculator { /** * Calculate the emptiness percentage for CV data * Returns the percentage of non-empty fields as a value between 0-100 */ static calculateEmptinessPercentage(data: any, expectedTotalFields?: number): EmptinessPercentageResult; /** * Recursively count total fields and non-empty fields */ private static countFieldsRecursive; /** * Check if a value is considered non-empty */ private static isNonEmptyValue; }