UNPKG

scratch-storage

Version:

Load and store project and asset files for Scratch 3.0

14 lines (13 loc) 386 B
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>; }