Skip to content

Commit 020b660

Browse files
committed
Refactor LitePubRelayFollower type to interface
1 parent a399927 commit 020b660

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/relay/src/relay.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ export interface Relay {
6262
setSubscriptionHandler(handler: SubscriptionRequestHandler): this;
6363
}
6464

65-
type LitePubRelayFollower = {
66-
actor: unknown;
67-
state: string;
68-
};
65+
interface LitePubRelayFollower {
66+
readonly actor: unknown;
67+
readonly state: string;
68+
}
69+
6970
/**
7071
* A Mastodon-compatible ActivityPub relay implementation.
7172
* This relay follows Mastodon's relay protocol for maximum compatibility

0 commit comments

Comments
 (0)