mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 17:24:47 +12:00
fix(api-extractor): link class in docs if interface merging happened (#10217)
This commit is contained in:
parent
1c5de21a29
commit
c6721d9aa7
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ import {
|
||||||
Navigation,
|
Navigation,
|
||||||
} from '@discordjs/api-extractor-model';
|
} from '@discordjs/api-extractor-model';
|
||||||
import type * as tsdoc from '@microsoft/tsdoc';
|
import type * as tsdoc from '@microsoft/tsdoc';
|
||||||
import { DeclarationReference } from '@microsoft/tsdoc/lib-commonjs/beta/DeclarationReference.js';
|
import { DeclarationReference, type Meaning } from '@microsoft/tsdoc/lib-commonjs/beta/DeclarationReference.js';
|
||||||
import { JsonFile, Path } from '@rushstack/node-core-library';
|
import { JsonFile, Path } from '@rushstack/node-core-library';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
import type { AstDeclaration } from '../analyzer/AstDeclaration.js';
|
import type { AstDeclaration } from '../analyzer/AstDeclaration.js';
|
||||||
|
@ -1796,8 +1796,8 @@ export class ApiModelGenerator {
|
||||||
DeclarationReference.parseComponent(type ?? 'unknown'),
|
DeclarationReference.parseComponent(type ?? 'unknown'),
|
||||||
)
|
)
|
||||||
.withMeaning(
|
.withMeaning(
|
||||||
lookup[astSymbol?.astDeclarations[0]?.declaration.kind ?? ts.SyntaxKind.ClassDeclaration] ??
|
(lookup[astSymbol?.astDeclarations.at(-1)?.declaration.kind ?? ts.SyntaxKind.ClassDeclaration] ??
|
||||||
('class' as any),
|
'class') as Meaning,
|
||||||
)
|
)
|
||||||
.toString(),
|
.toString(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue