-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c99842
commit ed8e089
Showing
10 changed files
with
3,722 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { ParserOptions, ComponentDoc } from 'react-docgen-typescript'; | ||
export interface Scope { | ||
lookup: (name: string) => Scope | undefined; | ||
node: NodePath; | ||
} | ||
|
||
/** | ||
* a callback to transfor them props table and the options to be passd to react-docgen-typescript. | ||
*/ | ||
export type RectDocgenTypescriptOptions = { | ||
/** | ||
* callback to transform the props table | ||
*/ | ||
transformProps?: (props: ComponentDoc[]) => ComponentDoc; | ||
} & ParserOptions; | ||
export interface NodePath { | ||
parentPath: NodePath; | ||
scope: Scope; | ||
} | ||
|
||
export type ParserPluginWithOptions = | ||
| ['decorators', NodePath] | ||
| ['pipelineOperator', Scope]; |
Oops, something went wrong.