UNPKG

remotion

Version:

Render videos in React

16 lines (15 loc) 661 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateOffthreadVideoImageFormat = void 0; const validateOffthreadVideoImageFormat = (input) => { if (typeof input === 'undefined') { return; } if (typeof input !== 'string') { throw new TypeError(`<OffthreadVideo imageFormat=""> must be a string, but got ${JSON.stringify(input)} instead.`); } if (input !== 'png' && input !== 'jpeg') { throw new TypeError(`<OffthreadVideo imageFormat=""> must be either "png" or "jpeg", but got ${input}`); } }; exports.validateOffthreadVideoImageFormat = validateOffthreadVideoImageFormat;