Skip to content

Commit 92a11f7

Browse files
committed
fix: Fixing Type Error
1 parent 79a9f96 commit 92a11f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/parser/officeParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function extractFiles(
114114
const extractedFiles: ExtractedFiles[] = [];
115115
const processZipfile = async (entry: Entry) => {
116116
if (filterFn(entry.filename)) {
117-
if (entry.getData) {
117+
if ("getData" in entry && typeof entry.getData === "function") {
118118
const data = await entry.getData(new BlobWriter());
119119
extractedFiles.push({
120120
filename: entry.filename,

0 commit comments

Comments
 (0)