refactor: monorepo+pnpm (removed husky)
This commit is contained in:
21
packages/hoppscotch-app/types/pw-ext-hook.d.ts
vendored
Normal file
21
packages/hoppscotch-app/types/pw-ext-hook.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
3
packages/hoppscotch-app/types/ts-utils.d.ts
vendored
Normal file
3
packages/hoppscotch-app/types/ts-utils.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export type KeysMatching<T, V> = {
|
||||
[K in keyof T]-?: T[K] extends V ? K : never
|
||||
}[keyof T]
|
||||
7
packages/hoppscotch-app/types/window.d.ts
vendored
Normal file
7
packages/hoppscotch-app/types/window.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__POSTWOMAN_EXTENSION_HOOK__: PWExtensionHook
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user