Skip to content

Commit f13725d

Browse files
benedikt-rothbuehler
authored andcommitted
docs: use parseFile instead parseSource (buehler#44)
fixing a type in the readme
1 parent 3d30f5f commit f13725d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const parser = new TypescriptParser();
2525
const parsed = await parser.parseSource(/* typescript source code as string */);
2626

2727
// or a filepath
28-
const parsed = await parser.parseSource('/user/myfile.ts', 'workspace root');
28+
const parsed = await parser.parseFile('/user/myfile.ts', 'workspace root');
2929
```
3030

3131
You can also parse multiple files at ones.

0 commit comments

Comments
 (0)