refactor: extract common types to @yume-chan/async package

This commit is contained in:
Simon Chan 2024-11-20 06:37:09 +08:00
parent 6cb0a589fa
commit db8466f6ee
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
58 changed files with 337 additions and 267 deletions

View file

@ -1,5 +1,7 @@
import type { MaybePromiseLike } from "@yume-chan/async";
export interface WebCodecsVideoDecoderRenderer {
setSize(width: number, height: number): void;
draw(frame: VideoFrame): Promise<void>;
draw(frame: VideoFrame): MaybePromiseLike<void>;
}