PeerTube/server/core/helpers/custom-validators/video-transcoding.ts

6 lines
167 B
TypeScript

import { exists } from './misc.js'
export function isValidCreateTranscodingType (value: any) {
return exists(value) && (value === 'hls' || value === 'web-video')
}