Using types declarations from the official @peertube/peertube-types package.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import type { RegisterServerOptions } from '@peertube/peertube-types'
|
||||
|
||||
async function getChannelNameById (options: RegisterServerOptions, channelId: number): Promise<string | null> {
|
||||
if (!channelId) {
|
||||
throw new Error('Missing channelId')
|
||||
|
Reference in New Issue
Block a user