diff --git a/packages/website/docs/project-api.md b/packages/website/docs/project-api.md index febf857..0418889 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 +```