If, for example, ffmpeg-static can’t find a suitable binary, shouldn’t it fail to install in the first place?
And if that’s the case, are you interested in a pull request in which I remove the null from the type?
Thanks!
Edit: For the time being I’m doing the following awkward gymnastics:
import assert from "node:assert/strict";
import maybeFFmpeg from "ffmpeg-static";
assert.equal(typeof maybeFFmpeg, "string");
const ffmpeg = maybeFFmpeg as unknown as string;
The type for
ffmpegPath
says that it can benull
.When would this happen?
If, for example,
ffmpeg-static
can’t find a suitable binary, shouldn’t it fail to install in the first place?And if that’s the case, are you interested in a pull request in which I remove the
null
from the type?Thanks!
Edit: For the time being I’m doing the following awkward gymnastics: