Skip to content

Commit 12a5d4e

Browse files
maciej-gurbandanez
andcommitted
Fix docs on resolvers; add where to find them (#328)
Co-authored-by: Daniel Tschinder <[email protected]>
1 parent ea7d203 commit 12a5d4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ Type: `(ast: ASTNode, parser: { parse: (string) => ASTNode }) => (NodePath | Arr
9191

9292
Given an AST and a reference to the parser, it returns an (array of) NodePath which represents the component definition.
9393

94+
*Built-in resolvers are available under the `resolver` property, e.g. `reactDocgen.resolver.findAllComponentDefinitions`*
95+
9496
#### handlers
9597

9698
Type: `Array<(documentation: Documentation, definition: NodePath, parser: { parse: (string) => ASTNode }) => void>`

0 commit comments

Comments
 (0)