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

6 lines
167 B
TypeScript
Raw Normal View History

import { exists } from './misc.js'
2021-11-18 14:35:08 +01:00
2024-11-04 10:16:31 +01:00
export function isValidCreateTranscodingType (value: any) {
return exists(value) && (value === 'hls' || value === 'web-video')
2021-11-18 14:35:08 +01:00
}