Skip to content

Commit 77797c8

Browse files
dodok8dahlia
andauthored
change: WebFingerLinkDispatcher to WebFingerLinksDispatcher
Co-authored-by: Hong Minhee (洪 民憙) <hong@minhee.org>
1 parent 1b29a6e commit 77797c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/fedify/src/federation/callback.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ export type NodeInfoDispatcher<TContextData> = (
2121
*
2222
* @template TContextData The context data to pass to the {@link Context}.
2323
*/
24-
export type WebFingerLinkDispatcher<TContextData> = (
24+
export type WebFingerLinksDispatcher<TContextData> = (
2525
context: RequestContext<TContextData>,
26-
) => Link[] | Promise<Link[]>;
26+
resource: URL,
27+
) => readonly Link[] | Promise<readonly Link[]>;
2728

2829
/**
2930
* A callback that dispatches an {@link Actor} object.

0 commit comments

Comments
 (0)