From 4bf86e6726135a138d2b4c00f7ba24970fea8aec Mon Sep 17 00:00:00 2001 From: Damir Miladinov Date: Tue, 28 Nov 2023 16:15:38 +0100 Subject: [PATCH] Update project-api.md --- packages/website/docs/project-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/website/docs/project-api.md b/packages/website/docs/project-api.md index febf857c..0418889d 100644 --- a/packages/website/docs/project-api.md +++ b/packages/website/docs/project-api.md @@ -50,7 +50,7 @@ To get a preview of changes that will be committed, the `VFS` object can be acce ```typescript const changedFiles = project.vfs.all(); -changedFiles.forEach((f) => { +Object.values(changedFiles).forEach((f) => { console.log(f.getFilename(), f.getData()); }); ``` @@ -352,4 +352,4 @@ jsonFile.merge({ field2: 'value' } }); -``` \ No newline at end of file +```