summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2023-12-28 12:52:12 +0100
committerMarie <marie@kaifa.ch>2023-12-28 12:52:12 +0100
commit9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d (patch)
treedc827e0e71d87bf1e044966d0eceef0ae02d2182 /packages/backend/src/server/api/stream/channels/bubble-timeline.ts
parentmerge: upstream (diff)
downloadsharkey-9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d.tar.gz
sharkey-9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d.tar.bz2
sharkey-9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d.zip
fix: typecheck
Diffstat (limited to 'packages/backend/src/server/api/stream/channels/bubble-timeline.ts')
-rw-r--r--packages/backend/src/server/api/stream/channels/bubble-timeline.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/backend/src/server/api/stream/channels/bubble-timeline.ts b/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
index 1a3fcede62..4f8809edbe 100644
--- a/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
+++ b/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
@@ -13,12 +13,12 @@ import { NoteEntityService } from '@/core/entities/NoteEntityService.js';
import { bindThis } from '@/decorators.js';
import { RoleService } from '@/core/RoleService.js';
import type { MiMeta } from '@/models/Meta.js';
-import Channel from '../channel.js';
+import Channel, { MiChannelService } from '../channel.js';
class BubbleTimelineChannel extends Channel {
public readonly chName = 'bubbleTimeline';
public static shouldShare = false;
- public static requireCredential = false;
+ public static requireCredential = false as const;
private withRenotes: boolean;
private withFiles: boolean;
private withBots: boolean;
@@ -100,9 +100,10 @@ class BubbleTimelineChannel extends Channel {
}
@Injectable()
-export class BubbleTimelineChannelService {
+export class BubbleTimelineChannelService implements MiChannelService<false> {
public readonly shouldShare = BubbleTimelineChannel.shouldShare;
public readonly requireCredential = BubbleTimelineChannel.requireCredential;
+ public readonly kind = BubbleTimelineChannel.kind;
constructor(
private metaService: MetaService,