@@ -238,25 +238,15 @@ class ClerkMarkdownThemeContext extends MarkdownThemeContext {
238
238
const customizedModel = model ;
239
239
customizedModel . typeParameters = undefined ;
240
240
241
- // Extract the Accessors group (if any) and prevent default rendering for it
242
241
const originalGroups = customizedModel . groups ;
243
242
244
- const experimentalGroups = originalGroups ?. find ( g =>
245
- g ?. owningReflection ?. comment ?. modifierTags . has ( '@experimental' ) ,
246
- ) ;
247
-
248
- if ( experimentalGroups ) {
249
- const groupsWithoutMethods = originalGroups ?. filter ( g => g . title === 'Properties' ) ;
250
-
251
- customizedModel . groups = groupsWithoutMethods ;
252
- const nonAccessorOutput = superPartials . memberWithGroups ( customizedModel , options ) ;
253
- customizedModel . groups = originalGroups ;
243
+ // When an interface extends another interface, typedoc will generate a "Methods" group
244
+ // We want to hide this group from being rendered
245
+ const groupsWithoutMethods = originalGroups ?. filter ( g => g . title !== 'Methods' ) ;
254
246
255
- return nonAccessorOutput ;
256
- }
257
-
258
- const accessorsGroup = originalGroups ?. find ( g => g . title === 'Accessors' ) ;
259
- const groupsWithoutAccessors = originalGroups ?. filter ( g => g . title !== 'Accessors' ) ;
247
+ // Extract the Accessors group (if any) and prevent default rendering for it
248
+ const accessorsGroup = groupsWithoutMethods ?. find ( g => g . title === 'Accessors' ) ;
249
+ const groupsWithoutAccessors = groupsWithoutMethods ?. filter ( g => g . title !== 'Accessors' ) ;
260
250
261
251
customizedModel . groups = groupsWithoutAccessors ;
262
252
const nonAccessorOutput = superPartials . memberWithGroups ( customizedModel , options ) ;
0 commit comments