vite_deleteelectron
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Document, Page, pdfjs } from 'react-pdf';
|
||||
|
||||
pdfjs.GlobalWorkerOptions.workerSrc = '/pdf.worker.js';
|
||||
pdfjs.GlobalWorkerOptions.workerSrc = '/pdf.worker.min.mjs';
|
||||
|
||||
interface PayslipViewerProps {
|
||||
fileUrl: string;
|
||||
|
||||
Vendored
-4
@@ -6,10 +6,6 @@ declare module '*.gif';
|
||||
declare module '*.bmp';
|
||||
declare module '*.tiff';
|
||||
|
||||
declare module 'fs';
|
||||
declare module 'path';
|
||||
declare module 'os';
|
||||
|
||||
interface Config {
|
||||
backendUrl: string;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
/// <reference types="react-scripts" />
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
Vendored
-18
@@ -1,18 +0,0 @@
|
||||
declare module 'textract' {
|
||||
interface TextractOptions {
|
||||
preserveLineBreaks?: boolean;
|
||||
preserveOnlyMultipleLineBreaks?: boolean;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
function fromBufferWithMime(
|
||||
mimeType: string,
|
||||
buffer: Buffer,
|
||||
options: TextractOptions,
|
||||
callback: (error: Error | null, text: string) => void
|
||||
): void;
|
||||
|
||||
export = {
|
||||
fromBufferWithMime
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user