Skip to content

Commit 1dbfe25

Browse files
committed
TW: update Scratch.canDownload, add Scratch.download
1 parent 36d201a commit 1dbfe25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/scratch-vm-extension.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ declare namespace Scratch {
3333
function canReadClipboard(): Promise<boolean>;
3434
function canNotify(): Promise<boolean>;
3535
function canEmbed(): Promise<boolean>;
36-
function canDownload(name: string): Promise<boolean>;
36+
function canDownload(url: string, name: string): Promise<boolean>;
37+
function download(url: string, name: string): Promise<void>;
3738
namespace Cast {
3839
function toNumber(value: unknown): number;
3940
function toString(value: unknown): string;

0 commit comments

Comments
 (0)