mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Function): Add link to source file (#9360)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user