diff options
| author | Marie <marie@kaifa.ch> | 2023-12-28 12:52:12 +0100 |
|---|---|---|
| committer | Marie <marie@kaifa.ch> | 2023-12-28 12:52:12 +0100 |
| commit | 9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d (patch) | |
| tree | dc827e0e71d87bf1e044966d0eceef0ae02d2182 /packages/backend/src/server/api/stream | |
| parent | merge: upstream (diff) | |
| download | sharkey-9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d.tar.gz sharkey-9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d.tar.bz2 sharkey-9a9f61a6c05926f0ba5c4d9243dbcf0d2bf7b36d.zip | |
fix: typecheck
Diffstat (limited to 'packages/backend/src/server/api/stream')
| -rw-r--r-- | packages/backend/src/server/api/stream/channels/bubble-timeline.ts | 7 |
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, |