mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Fix wrong type being used
This commit is contained in:
+1
-1
@@ -650,7 +650,7 @@ export class FilePathSource extends Source {
|
|||||||
_fileHandle: FileHandle | null = null;
|
_fileHandle: FileHandle | null = null;
|
||||||
|
|
||||||
/** Creates a new {@link FilePathSource} backed by the file at the specified file path. */
|
/** Creates a new {@link FilePathSource} backed by the file at the specified file path. */
|
||||||
constructor(filePath: string, options: BlobSourceOptions = {}) {
|
constructor(filePath: string, options: FilePathSourceOptions = {}) {
|
||||||
if (typeof filePath !== 'string') {
|
if (typeof filePath !== 'string') {
|
||||||
throw new TypeError('filePath must be a string.');
|
throw new TypeError('filePath must be a string.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user