mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
Switch PDF extraction to Obsidian's bundled PDF.js via loadPdfJs() instead of unpdf. Replace officeparser with mammoth for DOCX and custom fflate-based ZIP parsers for PPTX/XLSX/ODF formats. Eliminates heavy dependencies, removes all dynamic eval and .wasm references, and simplifies the esbuild plugin configuration.
22 lines
586 B
TypeScript
22 lines
586 B
TypeScript
declare module '*.css' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.svg' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.png' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
// mammoth ships type declarations for its default entry but not for the browser
|
|
// build we import (mammoth/mammoth.browser.js) for mobile safety. The browser build
|
|
// exposes the same public API, so we re-use mammoth's own types.
|
|
declare module 'mammoth/mammoth.browser.js' {
|
|
import mammoth from 'mammoth';
|
|
export = mammoth;
|
|
}
|