api-client/types/pw-ext-hook.d.ts

22 lines
436 B
TypeScript
Raw Normal View History

interface PWExtensionRequestInfo {
method: string
url: string
data: any & { wantsBinary: boolean }
}
interface PWExtensionResponse {
data: any
config?: {
timeData?: {
startTime: number
endTime: number
}
}
}
interface PWExtensionHook {
2021-05-15 12:43:31 +00:00
getVersion: () => { major: number; minor: number }
sendRequest: (req: PWExtensionRequestInfo) => Promise<PWExtensionResponse>
cancelRunningRequest: () => void
}