xinvoice/ts/plugins.ts

52 lines
951 B
TypeScript

/**
* Centralized imports for all external npm modules
* This file serves as a single point of import for all external dependencies
* to make the codebase more maintainable and follow the DRY principle.
*/
// PDF-related imports
import {
PDFDocument,
PDFDict,
PDFName,
PDFRawStream,
PDFArray,
PDFString,
AFRelationship
} from 'pdf-lib';
// XML-related imports
import { DOMParser, XMLSerializer } from 'xmldom';
import * as xpath from 'xpath';
// Compression-related imports
import * as pako from 'pako';
// Business model imports
import { business, finance, general } from '@tsclass/tsclass';
// Re-export all imports
export {
// PDF-lib exports
PDFDocument,
PDFDict,
PDFName,
PDFRawStream,
PDFArray,
PDFString,
AFRelationship,
// XML-related exports
DOMParser,
XMLSerializer,
xpath,
// Compression-related exports
pako,
// Business model exports
business,
finance,
general
};