Skip to content

Commit 4d8a87a

Browse files
mutsyspvasek
authored andcommitted
adding exports for Parser to allow it to be used in applications that provide their own integration with the TypeScript compiler API
1 parent 4e9c3e6 commit 4d8a87a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
FileParser,
44
getDefaultExportForFile,
55
parse,
6+
Parser,
67
ParserOptions,
78
PropItem,
89
PropItemType,
@@ -20,6 +21,7 @@ export {
2021
withCustomConfig,
2122
ComponentDoc,
2223
FileParser,
24+
Parser,
2325
ParserOptions,
2426
Props,
2527
PropItem,

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const defaultJSDoc: JSDoc = {
166166
tags: {}
167167
};
168168

169-
class Parser {
169+
export class Parser {
170170
private checker: ts.TypeChecker;
171171
private propFilter: PropFilter;
172172

0 commit comments

Comments
 (0)