Change arrow function to exported function

This commit is contained in:
Koen Vlaswinkel
2022-11-11 11:23:03 +01:00
parent 2dad33f2ba
commit c089135626

View File

@@ -10,7 +10,7 @@ export interface QueryPackFS {
directoryContents: (name: string) => string[];
}
export const readBundledPack = async (base64Pack: string): Promise<QueryPackFS> => {
export async function readBundledPack(base64Pack: string): Promise<QueryPackFS> {
const buffer = Buffer.from(base64Pack, 'base64');
const stream = Readable.from(buffer);
@@ -73,4 +73,4 @@ export const readBundledPack = async (base64Pack: string): Promise<QueryPackFS>
.map(dir => dir.substring(name.length + 1));
},
};
};
}