UNPKG

p6-xer

Version:

A TypeScript module for parsing and processing Primavera P6 XER files

33 lines (32 loc) 893 B
export interface XerTable { name: string; fields: string[]; rows: Record<string, string>[]; } export interface XerData { tables: XerTable[]; version?: string; project?: string; } export interface XerParserOptions { encoding?: string | null; skipEmptyTables?: boolean; fallbackEncoding?: string; } export interface ExportOptions { outputPath: string; format?: 'xlsx' | 'json' | 'csv'; sheetNamePrefix?: string; } export interface EncodingDetectionResult { encoding: string; confidence: number; } export declare class XerParserError extends Error { readonly cause?: Error | undefined; constructor(message: string, cause?: Error | undefined); } export declare class EncodingError extends XerParserError { readonly detectedEncoding?: string | undefined; constructor(message: string, detectedEncoding?: string | undefined); }