Files
hoppscotch/types/pw-ext-hook.d.ts
Liyas Thomas 3533aa391a chore: lint
2021-05-15 12:43:31 +00:00

22 lines
436 B
TypeScript

interface PWExtensionRequestInfo {
method: string
url: string
data: any & { wantsBinary: boolean }
}
interface PWExtensionResponse {
data: any
config?: {
timeData?: {
startTime: number
endTime: number
}
}
}
interface PWExtensionHook {
getVersion: () => { major: number; minor: number }
sendRequest: (req: PWExtensionRequestInfo) => Promise<PWExtensionResponse>
cancelRunningRequest: () => void
}