mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +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'));
|
const OverloadSwitcher = dynamic(async () => import('../../OverloadSwitcher'));
|
||||||
|
|
||||||
export function Function({ item }: { item: ApiFunction }) {
|
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) {
|
if (item.getMergedSiblings().length > 1) {
|
||||||
const overloads = item
|
const overloads = item
|
||||||
@@ -23,7 +23,7 @@ export function Function({ item }: { item: ApiFunction }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Header kind={item.kind} name={item.name} />
|
{header}
|
||||||
<FunctionBody item={item} />
|
<FunctionBody item={item} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user