scratch-storage
Version:
Load and store project and asset files for Scratch 3.0
11 lines (8 loc) • 374 B
text/typescript
export type ScratchGetRequest = {url: string} & RequestInit;
export type ScratchSendRequest = {url: string, withCredentials?: boolean} & RequestInit;
export interface Tool {
get isGetSupported (): boolean;
get (request: ScratchGetRequest): Promise<Uint8Array | null>;
get isSendSupported (): boolean;
send (request: ScratchSendRequest): Promise<string>;
}