@@ -51,15 +51,20 @@ export function parse(opts: DocsParseOptions) {
51
51
* Add methods of import(many is used in `extends`)
52
52
*/
53
53
const allImportObject = interfaces
54
- . filter ( i => apiInterface ?. importObject . includes ( i . name ) && i . name !== api )
54
+ . filter (
55
+ i => apiInterface ?. importObject . includes ( i . name ) && i . name !== api ,
56
+ )
55
57
. map ( i => i . importObject ) ;
56
58
57
- const otherMethod = interfaces
58
- . filter ( i => [ ...new Set ( allImportObject . flat ( ) ) ] . includes ( i . name ) )
59
- . map ( d => d . methods ) || null ;
59
+ const otherMethod =
60
+ interfaces
61
+ . filter ( i => [ ...new Set ( allImportObject . flat ( ) ) ] . includes ( i . name ) )
62
+ . map ( d => d . methods ) || null ;
60
63
61
64
if ( apiInterface !== null && otherMethod && otherMethod . length > 0 ) {
62
- apiInterface . methods = [ ...new Set ( apiInterface ?. methods . concat ( otherMethod . flat ( 1 ) ) ) ] ;
65
+ apiInterface . methods = [
66
+ ...new Set ( apiInterface ?. methods . concat ( otherMethod . flat ( 1 ) ) ) ,
67
+ ] ;
63
68
}
64
69
65
70
const data : DocsData = {
@@ -189,7 +194,7 @@ function getInterface(
189
194
const docs = symbol ? serializeSymbol ( typeChecker , symbol ) : null ;
190
195
191
196
// @ts -ignore
192
- const importObject = node . parent ?. locals ?. keys ( ) || [ ]
197
+ const importObject = node . parent ?. locals ?. keys ( ) || [ ] ;
193
198
194
199
const i : DocsInterface = {
195
200
name : interfaceName ,
@@ -198,7 +203,7 @@ function getInterface(
198
203
tags : docs ?. tags || [ ] ,
199
204
methods,
200
205
properties,
201
- importObject : [ ...importObject ] . filter ( ( d : string ) => d !== interfaceName )
206
+ importObject : [ ...importObject ] . filter ( ( d : string ) => d !== interfaceName ) ,
202
207
} ;
203
208
204
209
return i ;
0 commit comments