File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed
Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 22
33import { create } from '@orama/orama' ;
44import { persistToFile } from '@orama/plugin-data-persistence/server' ;
5+
56import { groupNodesByModule } from '../../utils/generators.mjs' ;
67import { createSectionBuilder } from '../legacy-json/utils/buildSection.mjs' ;
78
@@ -56,7 +57,7 @@ export default {
5657
5758 /**
5859 * @param {ApiDocMetadataEntry } head
59- * @returns {import('./types.d.ts').OramaDbEntry }
60+ * @returns {void }
6061 */
6162 const processModuleNodes = head => {
6263 const nodes = groupedModules . get ( head . api ) ;
@@ -89,7 +90,5 @@ export default {
8990 'json' ,
9091 `${ output } /${ version . raw . replaceAll ( '.' , '-' ) } -orama-db.json`
9192 ) ;
92-
93- return db ;
9493 } ,
9594} ;
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