| 34 | type Response = string | Blob | ArrayBuffer; |
| 35 | type UserOpts = VMScriptGMDownloadOptions | VMScriptGMXHRDetails; |
| 36 | interface BG { |
| 37 | cb: (data: GMReq.Message.BGAny) => Promise<void>; |
| 38 | /** use browser's `Cookie` header */ |
| 39 | cookie?: boolean; |
| 40 | /** allow Set-Cookie header to affect browser */ |
| 41 | 'set-cookie'?: boolean; |
| 42 | coreId: number; |
| 43 | /** Firefox-only workaround for CSP blocking a blob: URL */ |
| 44 | fileName: string; |
| 45 | frame: VMMessageTargetFrame; |
| 46 | frameId: number; |
| 47 | id: string; |
| 48 | responseHeaders: string; |
| 49 | storeId: string; |
| 50 | tabId: number; |
| 51 | url: string; |
| 52 | xhr: XMLHttpRequest; |
| 53 | } |
| 54 | interface Content { |
| 55 | chunks?: Uint8Array | string[]; |
| 56 | fileName: string; |
nothing calls this directly
no outgoing calls
no test coverage detected