File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
packages/react-docgen-cli/src Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { program } from 'commander';
4
4
program
5
5
. name ( 'react-docgen' )
6
6
. executableDir ( './commands/' )
7
- . command ( 'debug' , 'Print information for debugging' )
8
7
. command ( 'parse' , 'Extract meta information from React components.' , {
9
8
isDefault : true ,
10
9
executableFile : 'parse/command.js' ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import loadOptions from './options/loadOptions.js';
9
9
import outputError from './output/outputError.js' ;
10
10
import { resolve } from 'path' ;
11
11
import slash from 'slash' ;
12
+ import type { Documentation } from 'react-docgen' ;
12
13
13
14
const debug = debugFactory ( 'react-docgen:cli' ) ;
14
15
@@ -128,7 +129,7 @@ program
128
129
return slash ( ignorePath ) ;
129
130
} ) ,
130
131
} ) ;
131
- const result = { } ;
132
+ const result : Record < string , Documentation [ ] > = { } ;
132
133
let errorEncountered = false ;
133
134
134
135
await Promise . all (
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { writeFile } from 'fs/promises';
2
2
import type { Documentation } from 'react-docgen' ;
3
3
4
4
export default async function outputResult (
5
- documentation : Record < string , Documentation > ,
5
+ documentation : Record < string , Documentation [ ] > ,
6
6
{ pretty = false , output } : { pretty : boolean ; output : string | undefined } ,
7
7
) {
8
8
const result = JSON . stringify (
Original file line number Diff line number Diff line change 6
6
"target" : " es2020" ,
7
7
"module" : " es2020" ,
8
8
"strict" : true ,
9
- "strictNullChecks" : true ,
10
- "noImplicitThis" : true ,
11
9
"noImplicitAny" : false ,
12
10
"noImplicitReturns" : true ,
13
- "noUnusedParameters" : true ,
14
11
"noUnusedLocals" : true ,
12
+ "noUnusedParameters" : true ,
15
13
"moduleResolution" : " node16" ,
16
14
"esModuleInterop" : true ,
17
15
"forceConsistentCasingInFileNames" : true ,
You can’t perform that action at this time.
0 commit comments