File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
packages/react-docgen/src Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' react-docgen ' : patch
3+ ---
4+
5+ Add ` displayName ` and ` description ` to Doccumentation type
Original file line number Diff line number Diff line change 11export interface DocumentationObject {
2- props ?: Record < string , PropDescriptor > ;
3- context ?: Record < string , PropDescriptor > ;
42 childContext ?: Record < string , PropDescriptor > ;
53 composes ?: string [ ] ;
4+ context ?: Record < string , PropDescriptor > ;
5+ description ?: string ;
6+ displayName ?: string ;
67 methods ?: MethodDescriptor [ ] ;
8+ props ?: Record < string , PropDescriptor > ;
79}
810
911export interface MethodParameter {
1012 name : string ;
11- type ?: TypeDescriptor < FunctionSignatureType > | null ;
1213 optional : boolean ;
14+ type ?: TypeDescriptor < FunctionSignatureType > | null ;
1315}
1416
1517export interface MethodReturn {
@@ -162,6 +164,7 @@ export default class Documentation {
162164 this . #data. set ( key , value ) ;
163165 }
164166
167+ get < T > ( key : string ) : T | null ;
165168 get ( key : string ) : unknown {
166169 return this . #data. get ( key ) ;
167170 }
You can’t perform that action at this time.
0 commit comments