Skip to content

Commit ccb691b

Browse files
authored
Merge pull request emscripten-forge#24 from martinRenou/export_types
Missing export types
2 parents 86cadc4 + c6787c0 commit ccb691b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
8789
export default {
8890
extract,
8991
extractData

0 commit comments

Comments
 (0)