1
0
Fork 0
peertube/server/helpers/custom-validators/video-transcoding.ts
2021-11-18 15:20:57 +01:00

12 lines
285 B
TypeScript

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