We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1264f80 commit 6d48e10Copy full SHA for 6d48e10
2 files changed
.changeset/heavy-plums-repair.md
@@ -0,0 +1,9 @@
1
+---
2
+'react-docgen': minor
3
4
+
5
+The types `NodePath` and `babelTypes` are now exported.
6
7
+These types are useful when building integrations in TypeScript.
8
9
+`babelTypes` includes all types from `@babel/types`.
packages/react-docgen/src/main.ts
@@ -61,6 +61,9 @@ function defaultParse(
61
return parse(String(src), defaultConfig);
62
}
63
64
+export type { NodePath } from '@babel/traverse';
65
+export type * as babelTypes from '@babel/types';
66
67
export {
68
builtinHandlers,
69
builtinResolvers,
0 commit comments