File tree 2 files changed +26
-3
lines changed
2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import { create } from '@orama/orama' ;
4
4
import { persistToFile } from '@orama/plugin-data-persistence/server' ;
5
+
5
6
import { groupNodesByModule } from '../../utils/generators.mjs' ;
6
7
import { createSectionBuilder } from '../legacy-json/utils/buildSection.mjs' ;
7
8
@@ -56,7 +57,7 @@ export default {
56
57
57
58
/**
58
59
* @param {ApiDocMetadataEntry } head
59
- * @returns {import('./types.d.ts').OramaDbEntry }
60
+ * @returns {void }
60
61
*/
61
62
const processModuleNodes = head => {
62
63
const nodes = groupedModules . get ( head . api ) ;
@@ -89,7 +90,5 @@ export default {
89
90
'json' ,
90
91
`${ output } /${ version . raw . replaceAll ( '.' , '-' ) } -orama-db.json`
91
92
) ;
92
-
93
- return db ;
94
93
} ,
95
94
} ;
Original file line number Diff line number Diff line change
1
+ import { Orama } from '@orama/orama' ;
2
+
3
+ /**
4
+ * Schema for the Orama database entry
5
+ */
6
+ export interface OramaDbEntry {
7
+ name : string ;
8
+ type : string ;
9
+ desc : string ;
10
+ stability : number ;
11
+ stabilityText : string ;
12
+ meta : {
13
+ changes : string [ ] ;
14
+ added : string [ ] ;
15
+ napiVersion : string [ ] ;
16
+ deprecated : string [ ] ;
17
+ removed : string [ ] ;
18
+ } ;
19
+ }
20
+
21
+ /**
22
+ * Represents the Orama database for API docs
23
+ */
24
+ export type OramaDb = Orama < OramaDbEntry > ;
You can’t perform that action at this time.
0 commit comments