@@ -2,9 +2,9 @@ import type { DeclarationReflection, ProjectReflection } from 'typedoc';
22import { ReflectionKind } from 'typedoc' ;
33import type { Method } from '../../docs/.vitepress/components/api-docs/method' ;
44import { writeApiDocsModule } from './apiDocsWriter' ;
5- import { processModuleMethods } from './moduleMethods' ;
5+ import { analyzeModule , processModuleMethods } from './moduleMethods' ;
66import { analyzeSignature } from './signature' ;
7- import { extractDescription , selectApiSignature } from './typedoc' ;
7+ import { selectApiSignature } from './typedoc' ;
88import type { ModuleSummary } from './utils' ;
99
1010export function processFakerClass ( project : ProjectReflection ) : ModuleSummary {
@@ -21,15 +21,15 @@ export function processFakerClass(project: ProjectReflection): ModuleSummary {
2121
2222function processClass ( fakerClass : DeclarationReflection ) : ModuleSummary {
2323 console . log ( `Processing Faker class` ) ;
24- const comment = extractDescription ( fakerClass ) ;
24+ const { comment, deprecated } = analyzeModule ( fakerClass ) ;
2525 const methods : Method [ ] = [ ] ;
2626
2727 console . debug ( `- constructor` ) ;
2828 methods . push ( processConstructor ( fakerClass ) ) ;
2929
3030 methods . push ( ...processModuleMethods ( fakerClass , 'faker.' ) ) ;
3131
32- return writeApiDocsModule ( 'Faker' , 'faker' , comment , undefined , methods ) ;
32+ return writeApiDocsModule ( 'Faker' , 'faker' , comment , deprecated , methods ) ;
3333}
3434
3535function processConstructor ( fakerClass : DeclarationReflection ) : Method {
0 commit comments