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 07:35:08 -06:00
2024-11-04 03:16:31 -06:00
export function isValidCreateTranscodingType (value: any) {
return exists(value) && (value === 'hls' || value === 'web-video')
2021-11-18 07:35:08 -06:00
}