1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00
Peertube/server/core/helpers/custom-validators/video-transcoding.ts
2024-11-04 10:23:01 +01:00

5 lines
167 B
TypeScript

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