mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Validate types returned by custom coders, refactor custom coder call serialization logic, improve metadata validation
This commit is contained in:
@@ -494,3 +494,11 @@ export const computeRationalApproximation = (x: number, maxDenominator: number)
|
||||
denominator: currDenominator,
|
||||
};
|
||||
};
|
||||
|
||||
export class CallSerializer {
|
||||
currentPromise = Promise.resolve();
|
||||
|
||||
call(fn: () => Promise<void> | void) {
|
||||
return this.currentPromise = this.currentPromise.then(fn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user