mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 01:24:41 +12:00
fix(Function): Add link to source file (#9360)
This commit is contained in:
parent
1c8567f147
commit
774e23c572
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import { FunctionBody } from './FunctionBody';
|
|||
const OverloadSwitcher = dynamic(async () => import('../../OverloadSwitcher'));
|
||||
|
||||
export function Function({ item }: { item: ApiFunction }) {
|
||||
const header = <Header kind={item.kind} name={item.name} />;
|
||||
const header = <Header kind={item.kind} name={item.name} sourceURL={item.sourceLocation.fileUrl} />;
|
||||
|
||||
if (item.getMergedSiblings().length > 1) {
|
||||
const overloads = item
|
||||
|
@ -23,7 +23,7 @@ export function Function({ item }: { item: ApiFunction }) {
|
|||
|
||||
return (
|
||||
<div>
|
||||
<Header kind={item.kind} name={item.name} />
|
||||
{header}
|
||||
<FunctionBody item={item} />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue