commands: allow transferring arraybuffers/uint8arrays over commands

This commit is contained in:
Connor Peet
2021-09-15 16:39:03 -07:00
parent 8845812f6a
commit 35bba41595
3 changed files with 19 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ export interface MainThreadClipboardShape extends IDisposable {
export interface MainThreadCommandsShape extends IDisposable {
$registerCommand(id: string): void;
$unregisterCommand(id: string): void;
$executeCommand<T>(id: string, args: any[], retry: boolean): Promise<T | undefined>;
$executeCommand<T>(id: string, args: any[] | SerializableObjectWithBuffers<any[]>, retry: boolean): Promise<T | undefined>;
$getCommands(): Promise<string[]>;
}