File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const init = async (): Promise<IWasmModule | null> => {
2121 }
2222} ;
2323
24- const extractData = async ( data : Uint8Array ) : Promise < IFileData [ ] > => {
24+ export const extractData = async ( data : Uint8Array ) : Promise < IFileData [ ] > => {
2525 const wasmModule = await init ( ) ;
2626 if ( ! wasmModule ) {
2727 console . error ( 'WASM module not initialized.' ) ;
@@ -73,7 +73,7 @@ const extractData = async (data: Uint8Array): Promise<IFileData[]> => {
7373 }
7474} ;
7575
76- const extract = async ( url : string ) : Promise < IFileData [ ] > => {
76+ export const extract = async ( url : string ) : Promise < IFileData [ ] > => {
7777 try {
7878 const data = await fetchByteArray ( url ) ;
7979 console . log ( 'Data downloaded:' , data ) ;
@@ -84,6 +84,8 @@ const extract = async (url: string): Promise<IFileData[]> => {
8484 }
8585} ;
8686
87+ export * from './types' ;
88+
8789export default {
8890 extract,
8991 extractData
You can’t perform that action at this time.
0 commit comments