Skip to content

Commit 2057167

Browse files
fix: Argument of type '{}' is not assignable to parameter of type 'number'
1 parent 1524ea2 commit 2057167

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function generateAndUpdateMarkdown(markdownPreviewProvider: MarkdownPrevie
5757
markdownPreviewProvider.updateContent("Generating markdown...");
5858
const config = vscode.workspace.getConfiguration("recursiveMarkdownGenerator");
5959
const ig = await createIgnoreFilter(config, workspaceFolder.uri.fsPath);
60-
const maxFileSize = config.get("maxFileSize") || 512000; // 500KB in bytes
60+
const maxFileSize :number = config.get("maxFileSize") || 512000; // 500KB in bytes
6161
const fileInfos = await collectFileInfos(workspaceFolder.uri.fsPath, ig, maxFileSize);
6262
markdownPreviewProvider.generatedMarkdown = generateMarkdownFromFileInfos(fileInfos);
6363
const htmlContent = convertFileInfosToHtml(fileInfos);

0 commit comments

Comments
 (0)