Skip to content

Commit 79a748a

Browse files
Merge pull request #2664 from NaokiHaba/patch-2
docs(devtools): change writeFileSync to fs.writeFileSync
2 parents b64aafa + c332037 commit 79a748a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/devtools/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ First, open up the `main.ts` file and update the `bootstrap()` call, as follows:
7070

7171
```typescript
7272
bootstrap().catch((err) => {
73-
writeFileSync('graph.json', PartialGraphHost.toString() ?? '');
73+
fs.writeFileSync('graph.json', PartialGraphHost.toString() ?? '');
7474
process.exit(1);
7575
});
7676
```
@@ -130,7 +130,7 @@ To save a serialized graph to a file, use the following code:
130130

131131
```typescript
132132
await app.listen(3000); // OR await app.init()
133-
writeFileSync('./graph.json', app.get(SerializedGraph).toString());
133+
fs.writeFileSync('./graph.json', app.get(SerializedGraph).toString());
134134
```
135135

136136
> info **Hint** `SerializedGraph` is exported from the `@nestjs/core` package.

0 commit comments

Comments
 (0)